/* ========================================
   SETIC Website - Main Stylesheet
   Diseño minimalista y limpio
   ======================================== */

/* ========================================
   Variables CSS - Colores y Estilos
   ======================================== */
:root {
    /* Colores principales */
    --color-primary: #e38114;        /* Naranja SETIC - Acentos y CTAs */
    --color-secondary: #2d3e50;      /* Azul oscuro Seway - Textos importantes */
    --color-dark: #243238;           /* Gris muy oscuro - Textos principales */

    /* Grises neutros */
    --color-white: #ffffff;          /* Blanco - Fondo principal */
    --color-light: #f8f9fa;          /* Gris muy claro - Fondos alternos */
    --color-gray-100: #e9ecef;       /* Gris claro - Bordes sutiles */
    --color-gray-200: #dee2e6;       /* Gris medio - Separadores */
    --color-gray-300: #ced4da;       /* Gris */
    --color-gray-600: #6c757d;       /* Gris oscuro - Textos secundarios */
    --color-gray-700: #495057;       /* Gris más oscuro */
    --color-black: #000000;          /* Negro puro */

    /* Gradientes sutiles */
    --gradient-orange: linear-gradient(135deg, #e38114 0%, #f09433 100%);

    /* Sombras sutiles */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.12);

    /* Transiciones */
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.4s ease;

    /* Espaciados */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
}

/* ========================================
   Reset y Base Global
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-gray-700);
    line-height: 1.8;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* ========================================
   Utilidades
   ======================================== */
.section-padding {
    padding: var(--spacing-xxl) 0;
}

.section-padding-sm {
    padding: var(--spacing-xl) 0;
}

.text-orange {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-muted {
    color: var(--color-gray-600);
}

.bg-light {
    background-color: var(--color-light);
}

.bg-white {
    background-color: var(--color-white);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: var(--transition-base);
}

.navbar.scrolled .navbar-brand img {
    height: 38px;
}

.navbar-nav {
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--color-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-base);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-base);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-nav .nav-link:hover {
    color: var(--color-primary) !important;
}

/* Botón CTA en navbar */
.navbar-nav .btn-nav-cta {
    background: var(--gradient-orange);
    color: white !important;
    border-radius: 6px;
    padding: 0.6rem 1.5rem !important;
    margin-left: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.navbar-nav .btn-nav-cta::after {
    display: none;
}

.navbar-nav .btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navbar toggler */
.navbar-toggler {
    border: 1px solid var(--color-gray-300);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--color-primary);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-orange);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
}

.btn-outline-dark:hover {
    background: var(--color-dark);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline-primary:hover {
    background: var(--color-primary);
    color: white;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle, rgba(227, 129, 20, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    position: relative;
    z-index: 1;
    padding-right: 0;
}

.hero-image img {
    max-width: 100%;
    /* border-radius: 12px; */
    padding-right: 0;
    /* box-shadow: var(--shadow-xl); */
}

/* ========================================
   Cards y Servicios
   ======================================== */
.service-card,
.feature-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition-base);
    border: 1px solid var(--color-gray-100);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover,
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(227, 129, 20, 0.1) 0%, rgba(227, 129, 20, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--color-primary);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.card-description {
    color: var(--color-gray-700);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.card-link:hover {
    gap: 0.75rem;
}

/* Card destacada (Featured) */
.featured-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--color-primary);
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-orange);
}

.featured-badge {
    display: inline-block;
    background: var(--gradient-orange);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* ========================================
   Section Titles
   ======================================== */
.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--color-gray-600);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.section-title-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-orange);
    margin: 1.5rem auto 2rem;
    border-radius: 2px;
}

/* ========================================
   About Section / Company Values
   ======================================== */
.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray-700);
    margin-bottom: 2rem;
}

.value-item {
    padding: 1.5rem;
    background: var(--color-white);
    border-left: 4px solid var(--color-primary);
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
    border-radius: 0 8px 8px 0;
}

.value-item:hover {
    background: var(--color-light);
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}

.value-item h4 {
    color: var(--color-secondary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.value-item p {
    margin-bottom: 0;
    color: var(--color-gray-700);
}

/* ========================================
   Stats / Numbers Section
   ======================================== */
.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-gray-600);
    font-weight: 500;
}

/* ========================================
   Contact Form
   ======================================== */
.contact-form-wrapper {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-label {
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    border: 1px solid var(--color-gray-200);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--color-white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(227, 129, 20, 0.1);
    outline: none;
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(227, 129, 20, 0.15);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid {
    border-color: #28a745;
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-secondary);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: var(--spacing-xxl);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-copyright a {
    color: var(--color-primary);
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* ========================================
   Responsive
   ======================================== */

/* Tablets */
@media (max-width: 992px) {
    .hero-section {
        padding: 4rem 0;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .section-padding-sm {
        padding: 3rem 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar-nav .btn-nav-cta {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .service-card,
    .feature-card {
        padding: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Small mobile */
@media (max-width: 576px) {
    .navbar-brand img {
        height: 38px;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .section-padding {
        padding: 3rem 0;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth transitions for all interactive elements */
button,
a,
.btn,
.card {
    transition: var(--transition-base);
}
