/* Variables CSS para consistencia */
:root {
    --primary-color: #A033FF; /* Un púrpura vibrante, similar al branding profesional */
    --secondary-color: #6A0DAD; /* Un púrpura más oscuro para acentos */
    --accent-color: #FFC0CB; /* Un rosa suave para toques de calidez */
    --text-color: #333333;
    --light-text-color: #f4f4f4;
    --background-light: #ffffff;
    --background-dark: #f0f0f0;
    --border-color: #e0e0e0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --padding-section: 80px 0;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografía */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5em;
    color: var(--light-text-color); /* Blanco para la sección hero */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    white-space: nowrap; /* Evita que el texto del botón se rompa */
}

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

.primary-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--light-text-color);
    border: 2px solid var(--light-text-color);
    margin-left: 15px;
}

.secondary-btn:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.tertiary-btn {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    border: 2px solid var(--secondary-color);
}

.tertiary-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.small-btn {
    padding: 8px 15px;
    font-size: 0.9em;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
}

.small-btn:hover {
    background-color: var(--secondary-color);
}


/* Header y Navegación */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
    left: 0;
    background: var(--primary-color);
}


/* Secciones Generales */
.section-padding {
    padding: var(--padding-section);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero-background.jpg') no-repeat center center/cover;
    color: var(--light-text-color);
    text-align: center;
    padding: 150px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Ajusta la altura del hero */
}

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

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* About Section */
.about-section {
    background-color: var(--background-dark);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Evita que la imagen se reduzca en flexbox */
}

.about-text {
    flex-grow: 1;
}

.about-text h2 {
    text-align: left;
}

/* Services Section */
.services-section {
    background-color: var(--background-light);
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--background-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.service-item ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-item ul li::before {
    content: '✔'; /* Checkmark */
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.service-item .btn {
    margin-top: auto; /* Empuja el botón hacia abajo */
    align-self: flex-start; /* Alinea el botón a la izquierda */
}


/* Testimonials Section */
.testimonials-section {
    background: var(--secondary-color); /* Fondo oscuro para contraste */
    color: var(--light-text-color);
    text-align: center;
    position: relative;
    overflow: hidden; /* Para manejar el carrusel */
}

.testimonials-section h2 {
    color: var(--light-text-color);
}

.testimonials-carousel {
    display: flex;
    overflow-x: hidden; /* Oculta el scrollbar, JavaScript manejará el desplazamiento */
    scroll-snap-type: x mandatory; /* Para un snap suave entre testimonios */
    -webkit-overflow-scrolling: touch; /* Para un desplazamiento suave en iOS */
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 30px; /* Espacio para los botones de navegación si los hubiera */
}

.testimonial-card {
    flex: 0 0 100%; /* Cada tarjeta ocupa el 100% del ancho del carrusel */
    scroll-snap-align: start;
    background-color: rgba(255, 255, 255, 0.15); /* Fondo semitransparente */
    padding: 40px;
    border-radius: 10px;
    margin: 0 20px; /* Margen entre tarjetas, si el carrusel muestra más de una */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px; /* Altura mínima para consistencia */
}

.testimonial-card p {
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--accent-color);
}

/* Contact Section */
.contact-section {
    background-color: var(--background-light);
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 30px;
    background-color: var(--background-dark);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--primary-color), 0.2);
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer p {
    margin-bottom: 15px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
}

.social-links img {
    width: 28px;
    height: 28px;
    filter: invert(100%); /* Para hacer los íconos blancos */
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: translateY(-3px);
}


/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8em;
    }

    h2 {
        font-size: 2em;
    }

    .nav-list li {
        margin-left: 20px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        margin-bottom: 30px;
    }

    .service-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 15px;
    }

    h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .main-nav {
        flex-direction: column;
        text-align: center;
    }

    .nav-list {
        margin-top: 15px;
        flex-wrap: wrap; /* Permite que los ítems de navegación se envuelvan */
        justify-content: center;
    }

    .nav-list li {
        margin: 0 10px 10px;
    }

    .about-content {
        gap: 30px;
    }

    .profile-img {
        width: 250px;
        height: 250px;
    }

    .btn {
        width: 100%; /* Botones de ancho completo en móviles */
        margin-left: 0;
        margin-bottom: 15px;
    }

    .hero-content .btn:last-child {
        margin-bottom: 0;
    }

    .testimonial-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 60px 0;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.8em;
    }

    .logo {
        font-size: 1.5em;
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }

    .social-links img {
        width: 24px;
        height: 24px;
    }
}