/* ==================== VARIABLES & THEME ==================== */
:root {
    --primary-color: #0056b3;
    --primary-dark: #003d80;
    --secondary-color: #00c4cc;
    --accent-color: #d4af37;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    --header-height: 80px;
    --container-width: 1200px;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--primary-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== UTILITIES ==================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section__subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section__description {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

.btn--outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn--outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn--block {
    display: block;
    width: 100%;
}

/* ==================== HEADER ==================== */
.header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo__img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo__img--footer {
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 8px;
}

.nav__list {
    display: flex;
    gap: 40px;
}

.nav__link {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
    position: relative;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--primary-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* ==================== HERO ==================== */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 100px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero__subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--primary-dark);
}

.hero__description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero__stats {
    display: flex;
    gap: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat__number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-display);
}

.stat__text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.hero__image-wrapper {
    position: relative;
}

.hero__blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-color: #e0f7fa;
    border-radius: 50%;
    z-index: -1;
    filter: blur(60px);
}

.hero__img {
    border-radius: 20px 0 20px 0;
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}

/* ==================== NOSOTROS ==================== */
.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about__img {
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.about__list {
    margin-top: 25px;
    margin-bottom: 30px;
}

.about__item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.about__item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* ==================== SERVICIOS ==================== */
.services {
    background-color: var(--white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service__card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service__icon {
    width: 60px;
    height: 60px;
    background-color: #e6f7f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.service__title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service__description {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.service__link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.service__link:hover {
    gap: 12px;
}

/* ==================== GALERÍA ==================== */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery__item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    height: 250px;
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery__item:hover .gallery__img {
    transform: scale(1.1);
}

/* ==================== TESTIMONIOS ==================== */
.testimonials {
    background-color: var(--bg-alt);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial__card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.testimonial__rating {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.testimonial__text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial__img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial__name {
    font-size: 1rem;
    margin-bottom: 5px;
}

.testimonial__job {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==================== CONTACTO ==================== */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact__info {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact__item i {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact__item span {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.contact__form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form__textarea {
    height: 120px;
    resize: none;
}

/* ==================== MAPA ==================== */
.contact__map {
    margin-top: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact__map iframe {
    display: block;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer__logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer__description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    max-width: 300px;
}

.footer__social {
    display: flex;
    gap: 15px;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.footer__social-link:hover {
    background-color: var(--secondary-color);
}

.footer__title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--white);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer__link:hover {
    color: var(--white);
}

.footer__copy {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE ==================== */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 4rem 0;
        box-shadow: var(--shadow-md);
        z-index: 100;
    }

    .show-menu {
        display: block !important;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav__toggle,
    .nav__close {
        display: block !important;
        position: relative;
        z-index: 2000;
    }

    .nav__close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        z-index: 1001;
        cursor: pointer;
        font-size: 1.5rem;
    }

    .header__actions .btn {
        display: none;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .about__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about__list {
        display: inline-block;
        text-align: left;
    }

    .contact__container {
        grid-template-columns: 1fr;
    }

    .footer__container {
        grid-template-columns: 1fr;
    }

    .section__title {
        font-size: 2rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    .hero__buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
/* Estilos para avatares de testimonios con iniciales */
.testimonial__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0056b3, #00c4cc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial__avatar::before {
    content: attr(data-initials);
}
