/*Reset y estilos generales*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/*Botón flotante WhatsApp*/

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/*Header y navegación*/

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007BFF;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.2);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333333;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #0088cc;
}

.btn-nav {
    background-color: #31c943;
    color: #ffffff !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-nav:hover {
    background-color: #28a837;
    transform: translateY(-2px);
}

/* Botón menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/*Hero Section*/

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0088cc 0%, #31c943 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    color: #ffffff;
    margin-bottom: 20px;
}

.typewriter {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    min-height: 60px;
}

.typewriter::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: #ff9800;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    display: block;
    font-size: 2.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/*Botones*/

.btn-primary {
    display: inline-block;
    background-color: #31c943;
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: #28a837;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(49, 201, 67, 0.4);
}

.btn-card {
    display: inline-block;
    color: #007BFF;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.btn-card:hover {
    color: #006699;
}

.btn-submit {
    width: 100%;
    background-color: #31c943;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-submit:hover {
    background-color: #28a837;
    transform: translateY(-2px);
}

/*Secciones*/

.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #666666;
    margin-bottom: 40px;
}

/*Cards de servicios*/

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 20px;
}

/*Sección quienes somos*/

.section-about {
    background-color: #f5f5f5;
    max-width: 100%;
    padding: 80px 20px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content .section-title {
    text-align: left;
}

.text-highlight {
    color: #007BFF;
    font-weight: 600;
    margin-bottom: 15px;
}

.about-content .text-highlight {
    color: #007BFF;
}

.about-content p {
    margin-bottom: 20px;
    color: #555555;
}

/*Card de paquetes*/

.card-package {
    padding: 40px 30px;
}

.card-package h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007BFF;
    margin-bottom: 20px;
}

.card-package ul {
    margin-bottom: 25px;
}

.card-package ul li {
    padding: 8px 0;
    color: #555555;
    font-size: 0.95rem;
}

.card-package .price {
    color: #007BFF;
    font-size: 22px;
}

.card-package.featured {
    border: 2px solid #007BFF;
    box-shadow: 0 5px 25px rgba(0, 136, 204, 0.15);
}

/*Formulario de contacto*/

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .section-title {
    margin-bottom: 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/*Sección CTA (Cierre)*/

.section-cta {
    background: linear-gradient(135deg, #007BFF 0%, #007BFF 100%);
    max-width: 100%;
    text-align: center;
    padding: 100px 20px;
}

.section-title-light {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.section-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/*Footer*/

.footer {
    background-color: #1a1a1a;
    padding: 30px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    color: #ffffff;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #ffffff;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #31c943;
}

/*Resposive Tablet*/

@media (max-width: 992px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content {
        text-align: center;
    }

    .typewriter {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }
}

/*Diseño responsivo móvil*/

@media (max-width: 768px) {
    /* Menú móvil */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu li {
        text-align: center;
    }

    .btn-nav {
        display: inline-block;
    }

    /* Hero */

    .hero {
        padding: 120px 20px 60px;
    }

    .typewriter {
        font-size: 1.8rem;
        min-height: 40px;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Cards */
    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Títulos */
    .section-title,
    .section-title-light {
        font-size: 1.6rem;
    }

    /* About */
    .about-image {
        order: -1;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }

    /* WhatsApp flotante */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .typewriter {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section {
        padding: 60px 15px;
    }

    .card {
        padding: 30px 20px;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}
