/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #008080; /* Teal */
    --secondary-color: #f0f8ff; /* AliceBlue */
    --accent-color: #ffafcc; /* Pink */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevenir scroll horizontal por las animaciones */
}

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

h1, h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
}

section {
    padding: 5rem 0;
    overflow-x: hidden; /* Soluciona el problema de desborde horizontal */
}

/* --- Header y Navegación --- */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.nav{
    display: flex;
    flex-direction: row;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center; /* Alinea los items verticalmente */
    gap: 1.2rem; /* Espacio ajustado */
}

.btn-header {
    margin-left: 1rem;
    display: inline-block;
    padding: 0.5rem 1rem; /* Botón aún más compacto */
    font-size: 0.85rem; /* Letra del botón más chica */
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
    font-size: 0.9rem; /* Letra de los links más chica */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.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 Section --- */
.hero {
    background: linear-gradient(rgba(40, 50, 60, 0.7), rgba(40, 50, 60, 0.7)), url('https://images.pexels.com/photos/1128318/pexels-photo-1128318.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size:cover;
    height: 100vh;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Necesario para posicionar las formas */
    overflow: hidden; /* Para que las formas no se salgan */
}

.hero h1, .hero p {
    color: var(--white);
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Detrás del contenido pero sobre el fondo */
}

.hero .container {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre las formas */
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(0, 128, 128, 0.15); /* Un poco más visible */
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 15%;
    animation-delay: 2s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 10%;
    animation-duration: 25s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 5%;
    animation-delay: 5s;
    animation-duration: 18s;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}


.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 128, 128, 0.3);
}

.btn:hover {
    background-color: #006666;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 128, 128, 0.4);
}

/* --- Sobre Mí --- */
.about {
    background-color: var(--white);
}


.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex-basis: 400px;
    text-align: center; /* Centramos el contenido de la imagen y el caption */
}

.about-image img {
    width: 60%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* Transición suave */
}

.about-image-caption {
    margin-top: 1.5rem;
}

.about-image-caption h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.about-image-caption p {
    font-size: 0.65rem;
    color: var(--text-color);
    line-height: 1.4;
}

.about-image:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* --- Testimonios --- */
.testimonials {
    background-color: var(--light-gray);
}

.swiper-container {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px; /* Espacio para la paginación */
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transición suave */
    max-width: 500px; /* Ancho máximo para las tarjetas */
    width: 100%;
}

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

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author span {
    font-weight: 600;
    color: var(--primary-color);
}

.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* --- Servicios --- */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transición más suave */
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* --- FAQ --- */
.faq {
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #e0e0e0;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-question i {
    transition: transform 0.3s ease-in-out;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    background-color: var(--secondary-color);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    line-height: 1.7;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    padding-top: 1.5rem;
}

/* --- Social Media --- */
.social-media {
    background-color: var(--light-gray);
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.social-icon.whatsapp { background-color: #25D366; }
.social-icon.facebook { background-color: #1877F2; }
.social-icon.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icon.linkedin { background-color: #0A66C2; }


/* --- Contacto --- */
.contact {
    background-color: var(--light-gray);
}

.contact p {
    text-align: center;
}
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 128, 128, 0.5);
}

.contact-form .btn {
    align-self: center;
    cursor: pointer;
    border: none;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col .logo {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

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

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

.footer-links a {
    text-decoration: none;
    color: var(--white);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

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

.social-icons-footer .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 992px) { /* Punto de quiebre más grande para el menú */
    .nav-list {
        gap: 1rem;
        font-size: 0.9rem; /* Achicamos un poco la letra */
    }

    .btn-header {
        padding: 0.7rem 1.2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        order: -1;
        margin-bottom: 2rem;
        max-width: 350px;
    }
}

@media (max-width: 850px) { /* Punto de quiebre para el menú hamburguesa */
    .hamburger {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        transform: translateY(-120%);
        transition: transform 0.4s ease-in-out;
        opacity: 0;
        z-index: 99;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

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

    .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        gap: 1.5rem;
        width: 100%;
    }

    .nav-link {
        font-size: 1rem;
    }

    .btn-header {
        margin-left: 0;
        width: 80%;
        text-align: center;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .nav-list li:last-child {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.8rem;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    section {
        padding: 3rem 0;
    }
}