/* =======================
   Variables y Estilos Globales
   ======================= */
:root {
    /* --- PALETA AZULADA (MÁS CLARA) --- */
    --primary-color: #3498DB;
    /* Azul principal (vibrante) */
    --dark-bg: #2C3E50;
    /* <-- FONDO MÁS CLARO */
    --card-bg: #3A506B;
    /* <-- TARJETAS MÁS CLARAS */
    --text-color: #A9B0B9;
    --light-text: #FFFFFF;
    --border-color: #566573;
    /* <-- BORDE MÁS CLARO */
    --font-principal: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-principal);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--light-text);
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

section {
    padding: 5rem 0;
}

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: 2px solid var(--primary-color);
    font-weight: 700;
}

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

.btn-lg {
    padding: 12px 35px;
    font-size: 1.1rem;
}

/* =======================
   Header y Navegación
   ======================= */
.header {
    background-color: rgba(44, 62, 80, 0.8);
    /* <-- COLOR HEADER ACTUALIZADO */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links li a {
    color: var(--light-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-btn {
    padding: 8px 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* =======================
   Hero Section
   ======================= */
#hero {
    padding-top: 10rem;
    text-align: center;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

#hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 700px;
}

#hero .highlight {
    color: var(--primary-color);
}

#hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* =======================
   Servicios (Cards)
   ======================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* =======================
   Proceso (Timeline)
   ======================= */
#proceso {
    background-color: var(--card-bg);
}

.proceso-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.proceso-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    opacity: 0.3;
}

.proceso-step {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.proceso-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.proceso-step:nth-child(even) {
    left: 50%;
    text-align: left;
}

.proceso-step:nth-child(odd) .proceso-number {
    right: -25px;
}

.proceso-step:nth-child(even) .proceso-number {
    left: -25px;
}

.proceso-number {
    position: absolute;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
}

.proceso-content {
    padding: 20px 30px;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
}

.proceso-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* =======================
   NUEVA SECCIÓN: PRECIOS
   ======================= */
#precios {
    background-color: var(--dark-bg);
}

#precios .grid-container {
    align-items: stretch;
    /* Hace que las tarjetas tengan la misma altura */
}

/* Re-estilizando la card para precios */
#precios .card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h3 {
    font-size: 1.6rem;
    color: var(--light-text);
}

.precio-tag {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.precio-features {
    list-style: none;
    margin: 0 auto 2rem auto;
    flex-grow: 1;
    /* Empuja el botón hacia abajo */
    padding: 0;
}

.precio-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 1rem;
    text-align: left;
}

.precio-features li::before {
    content: '✔';
    /* Checkmark */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

#precios .btn {
    width: 100%;
    text-align: center;
}

/* Plan Destacado */
.card.featured {
    transform: scale(1.05);
    /* Ligeramente más grande */
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.15);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 5px 30px;
    font-size: 0.9rem;
    font-weight: 700;
    transform: rotate(45deg);
}

/* Servicios Adicionales */
.additional-services {
    margin-top: 5rem;
    text-align: center;
}

.additional-services h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.additional-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.additional-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    flex-basis: 350px;
    /* Ancho base */
    text-align: left;
}

.additional-item h4 {
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.additional-item p {
    margin-bottom: 1rem;
}

.additional-item .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ==================================
   CONTACTO Y FOOTER
   ================================== */

#contacto {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

#contacto h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

#contacto .subtitulo {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contacto-container {
    display: flex;
    flex-wrap: wrap;
    /* Para que en móvil se apilen */
    gap: 3rem;
    /* Espacio entre el formulario y la info */
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-container,
.info-container {
    flex: 1;
    /* Ambos ocupan el 50% */
    min-width: 300px;
    /* Ancho mínimo antes de apilarse */
}

.form-container h3,
.info-container h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Estilos del Formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--light-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: var(--dark-bg);
    /* Fondo más oscuro */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 1rem;
    font-family: var(--font-principal);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    /* Sombra azul */
}

.form-container .btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Estilos de la Info de Contacto */
.info-container p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.info-item {
    background-color: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item .info-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: #fff;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    word-break: break-all;
}

.info-item a:hover {
    color: #fff;
}

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

.social-links-contacto a {
    color: var(--light-text);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links-contacto a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* =======================
   ESTILOS FOOTER
   ======================= */

footer {
    background-color: #1B2739;
    /* Un poco más oscuro que el fondo principal */
    color: var(--text-color);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-contact p {
    font-size: 1rem;
}

.footer-contact a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

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

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

.footer-social a {
    color: var(--light-text);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color);
}


/* =======================
   Responsive (Media Queries)
   ======================= */

@media (max-width: 992px) {
    #hero h1 {
        font-size: 2.8rem;
    }

    .card.featured {
        transform: scale(1);
        /* Desactivar zoom en pantallas pequeñas */
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 81px;
        /* Altura del header */
        right: -100%;
        /* Oculto fuera de la pantalla */
        width: 100%;
        height: calc(100vh - 81px);
        background-color: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin-left: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

    .nav-btn {
        font-size: 1.3rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1rem;
    }

    /* Responsive del Proceso */
    .proceso-timeline::after {
        left: 25px;
    }

    .proceso-step {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left !important;
    }

    .proceso-step:nth-child(even) {
        left: 0;
    }

    .proceso-number {
        left: 0px !important;
        transform: translateY(-50%) !important;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}