/* ==============================
   Paleta de colores:
   #054f77, #dcf4f8, #1fc8e4, #0aaad2, #0d94bd
   ============================== */
@import url('https://fonts.googleapis.com/css2?family=Krona+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    padding: 0;
    margin: 0;
}

:root {
    /* Paleta Futurista / IA */
    --color-fondo: #f0f4f8;
    /* Fondo casi blanco, muy limpio */
    --color-fondo-secundario: #ffffff;
    --color-texto-principal: #0d1a2e;
    /* Azul muy oscuro, casi negro */
    --color-texto-secundario: #5c6a7e;
    --color-acento: #00aaff;
    /* Azul eléctrico como acento principal */
    --color-acento-gradiente: linear-gradient(45deg, #00aaff, #00ffaa);
}

/* Fondo y fuente global */
body {
    position: relative;
    font-family: 'Poppins', sans-serif;
    background: var(--color-fondo);
    color: var(--color-texto-principal);
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 300;
    width: 100%;
    height: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
    width: 100%;
    position: sticky;
    /* Fija la barra de navegación en la parte superior */

    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    /* Efecto de vidrio esmerilado */
    -webkit-backdrop-filter: blur(10px);
    /* Efecto de vidrio esmerilado */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    border-bottom: 1px solid #e0e6f0;
}

.navbar__logo {
    font-size: 24px;
    font-family: 'Krona One', sans-serif;
    font-weight: 700;
    color: var(--color-texto-principal);
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar__menu__links {
    text-decoration: none;
    color: var(--color-texto-principal);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.navbar__menu__links::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--color-acento-gradiente);
    transition: width 0.3s ease;
}

.navbar__menu__links:hover {
    color: var(--color-acento);
}

.navbar__menu__links:hover::after {
    width: 100%;
}

/* Navbar connect*/
.navbar__menu__connect {
    padding: 0.5rem 1.5rem;
    color: white;
    background: var(--color-acento);
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar__menu__connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.4);
    color: white;
}

.navbar__menu__connect:hover::after {
    width: 0;
    /* Evita que la línea aparezca en el botón */
}

/* Botón de hamburguesa para móvil */
.navbar__toggle {
    display: none;
    /* Oculto por defecto en escritorio */
    background: none;
    border: none;
    color: var(--color-texto-principal);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== SECCIONES ===== */
.section {
    padding: 6rem 5%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section__planes {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.section__title {
    font-family: 'Krona One', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--color-texto-principal);
}

.section__content {
    font-size: 1.2rem;
    color: var(--color-texto-secundario);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== PILARES ===== */
.pilares__container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.pilar__card {
    flex-basis: 300px;
    background-color: var(--color-fondo-secundario);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e0e6f0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    text-align: center;
}

.pilar__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--color-acento-gradiente);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pilar__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-texto-principal);
}

/* ===== QUÉ NOS HACE DIFERENTES ===== */
.diferentes__container {
    display: flex;
    flex-direction: column;
    /* Apila las tarjetas verticalmente */
    gap: 2.5rem;
    margin-top: 3rem;
}

.diferente__card {
    display: flex;
    ;
    gap: 2rem;
    background-color: var(--color-fondo-secundario);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e0e6f0;
    box-shadow: 0 4px 15px rgba(13, 26, 46, 0.05);
    overflow: hidden;
    /* Asegura que los bordes redondeados se mantengan */
}

/* Efecto escalonado */
.diferente__card:nth-child(even) {
    flex-direction: row-reverse;
}

.diferente__card-icon-wrapper {
    flex-shrink: 0;
}

.diferente__card-text-wrapper {
    text-align: left;
}

.diferente__icon {
    font-size: 4rem;
    color: var(--color-acento);
    width: 80px;
    /* Ancho fijo para el contenedor del icono */
    text-align: center;
}

.diferente__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-texto-principal);
}

/* ===== AUTOMATIZACIÓN Y MARKETING ===== */
.automatizacion__container {
    margin: 10px;
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: center;
}

.automatizacion__text {
    flex-basis: 50%;
}

.automatizacion__icon-container {
    flex-basis: 40%;
    text-align: center;
}

.automatizacion__icon {
    font-size: 12rem;
    background: var(--color-acento-gradiente);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.product__card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-fondo-secundario);
    border: 1px solid #e0e6f0;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    flex-basis: 320px;
    flex-grow: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 26, 46, 0.1);
}

.product__card__icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--color-acento-gradiente);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product__card__title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.product__card__features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    align-items: center;
}

.product__card__features li {
    margin-bottom: 0.75rem;
    display: flex;
    text-align: center;
    gap: 0.5rem;
}

.product__card__features .fa-check {
    color: var(--color-acento);
}

.product__card__parrafo {
    color: var(--color-texto-secundario);
    font-weight: 500;
    margin-bottom: 2rem;
}

.product__card__delivery {
    font-size: 0.9rem;
    color: var(--color-texto-secundario);
    margin-bottom: 1.5rem;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    text-decoration: none;
    background: var(--color-acento-gradiente);
    border: none;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn.btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    margin-top: 2rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 170, 255, 0.5);
}

/* ===== OPINIONES DE CLIENTES ===== */
.testimonials__container {
    display: flex;
    flex-wrap: wrap;
    /* Permite que las tarjetas se ajusten en varias líneas */
    justify-content: center;
    /* Centra las tarjetas en el contenedor */
    padding: 2rem 0;
    gap: 2rem;
}

.testimonial {
    display: flex;
    flex-direction: column;
    flex-basis: clamp(300px, 45%, 450px);
    /* Ancho flexible, 2 por fila en pantallas medianas */
    flex-grow: 1;
    /* Permite que crezcan para ocupar el espacio */
    padding: 2.5rem;
    border-radius: 15px;
    background-color: var(--color-fondo-secundario);
    border: 1px solid #e0e6f0;
    position: relative;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(13, 26, 46, 0.08);
}

.testimonial__icon {
    font-size: 2.5rem;
    color: var(--color-acento);
    opacity: 0.4;
    margin-bottom: 1rem;
}

.testimonial__text {
    color: var(--color-texto-secundario);
    font-size: 1.1rem;
    line-height: 1.7;
    flex-grow: 1;
    /* Empuja al autor hacia abajo */
    margin-bottom: 1.5rem;
}

.testimonial__author {
    font-weight: 700;
    color: var(--color-texto-principal);
    align-self: flex-end;
    /* Alinea el autor a la derecha */
}

/* ===== FORMULARIO ===== */
.form__group {
    width: 100%;
    margin-bottom: 1rem;
    max-width: 600px;
    /* Limita el ancho del formulario en pantallas grandes */
    margin-left: auto;
    margin-right: auto;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e6f0;
    color: var(--color-texto-principal);
    background-color: var(--color-fondo-secundario);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    resize: vertical;
    /* Permite cambiar el tamaño solo verticalmente */
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--color-acento);
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.2);
}

.contact-separator {
    margin: 2rem auto;
    color: var(--color-texto-secundario);
    font-weight: 500;
}

.btn-whatsapp {
    background: #25D366;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-whatsapp:hover {
    background: #1DAE54;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transform: translateY(-3px);
}

.contact-form {
    margin-bottom: 0;
}

/* Form status message */
#form-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
}

/* ===== SOBRE MI ===== */
.about-me__container {
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: left;
}

.about-me__image {
    flex-basis: 40%;
    flex-shrink: 0;
}

.about-me__image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(13, 26, 46, 0.1);
}

.about-me__text {
    flex-basis: 60%;
}

.about-me__text .section__content+.section__content {
    margin-top: 1rem;
    /* Añade espacio entre los párrafos de la sección "Sobre mí" */
}

/* Skills section inside "About Me" */
.skills__title {
    font-size: 1.5rem;
    color: var(--color-texto-principal);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.skills__container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill__tag {
    background-color: var(--color-fondo-secundario);
    color: var(--color-texto-secundario);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e0e6f0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill__tag i {
    color: var(--color-acento);
}

.skill__tag:hover {
    transform: translateY(-3px);
    background-color: white;
    box-shadow: 0 4px 15px rgba(13, 26, 46, 0.1);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-texto-principal);
    color: #a9b4c5;
    /* Un gris claro para el texto secundario del footer */
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer__column {
    flex: 1;
    min-width: 250px;
}

.footer__logo {
    font-family: 'Krona One', sans-serif;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer__description {
    line-height: 1.7;
}

.footer__title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.footer__links,
.footer__contact {
    list-style: none;
}

.footer__links li,
.footer__contact li {
    margin-bottom: 0.75rem;
}

.footer__links a,
.footer__contact a {
    color: #a9b4c5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__links a:hover,
.footer__contact a:hover {
    color: white;
}

.footer__contact i {
    margin-right: 0.5rem;
    color: var(--color-acento);
}

.footer__copyright {
    text-align: center;
    border-top: 1px solid #2a3b52;
    /* Línea separadora sutil */
    padding-top: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq__container {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: left;
}

.faq__item {
    border-bottom: 1px solid #e0e6f0;
}

.faq__question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-texto-principal);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__question::after {
    content: '\f078';
    /* Font Awesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.faq__question.active::after {
    transform: rotate(180deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq__answer p {
    padding: 0 1rem 1.5rem;
    color: var(--color-texto-secundario);
    line-height: 1.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar__toggle {
        display: block;
        /* Muestra el botón de hamburguesa */
    }

    .navbar__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-fondo-secundario);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        visibility: hidden;
        opacity: 0;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-20px);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    .navbar__menu.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        /* Muestra el menú */
    }

    .section__planes {
        flex-direction: column;
        align-items: center;
    }

    .product__card {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    .about-me__container {
        flex-direction: column;
        gap: 2rem;
    }

    .automatizacion__container {
        flex-direction: column-reverse;
        align-items: center;
        gap: 3rem;
    }

    .automatizacion__text .section__title {
        text-align: center;
        width: 95%;
        height: 95%;
    }

    .diferente__card,
    .diferente__card:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .diferente__card-text-wrapper {
        text-align: center;
    }

    #contacto {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== ANIMATIONS ON SCROLL ===== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}