/* Variables CSS - Paleta de colores mejorada */
:root {
    --primary-blue: #1E88E5;
    --dark-blue: #1565C0;
    --light-blue: #42A5F5;
    --very-light-blue: #E3F2FD;
    --beige: #F5F1E8;
    --cream: #FAF8F3;
    --white: #FFFFFF;
    --orange: #D85C5C;
    --dark-orange: #C04A4A;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    --gradient-orange: linear-gradient(135deg, #D85C5C 0%, #C04A4A 100%);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

/* Top Bar */
.top-bar {
    background: #6FA8A8;
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-left {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.top-bar-item:hover {
    opacity: 0.8;
}

.top-bar-icon {
    font-size: 1rem;
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--very-light-blue);
    border-radius: 50%;
    color: #6FA8A8;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-3px);
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--white);
    box-shadow: 0 4px 20px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    top: 0;
    box-shadow: 0 2px 15px var(--shadow-medium);
}

.navbar {
    padding: 0.7rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    max-width: 1400px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.logo {
    height: 72px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6FA8A8;
    margin: 0;
    line-height: 1.2;
}

.logo-text .tagline {
    font-size: 0.85rem;
    color: var(--orange);
    margin: 0;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.15rem 1.15rem;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.84rem;
    letter-spacing: 0.01em;
    line-height: 1.25;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
    padding: 0.4rem 0;
    display: inline-block;
}

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

.nav-link:hover {
    color: #6FA8A8;
}

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

.nav-link.active {
    color: #6FA8A8;
    font-weight: 600;
}

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

.btn-appointment {
    padding: 10px 16px;
    background: #D85C5C;
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    line-height: 1.2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(216, 92, 92, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-appointment:hover {
    background: #C04A4A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 92, 92, 0.45);
}

/* Ajuste fino del menú solo en PC */
@media (min-width: 969px) and (max-width: 1280px) {
    .navbar .container {
        gap: 12px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo {
        height: 64px;
        max-width: 150px;
    }

    .nav-menu {
        gap: 0.1rem 0.75rem;
        padding: 0 4px;
    }

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

    .btn-appointment {
        padding: 9px 12px;
        font-size: 0.68rem;
        letter-spacing: 0.03em;
    }
}

@media (min-width: 1281px) {
    .nav-menu {
        gap: 0.2rem 1.35rem;
    }

    .nav-link {
        font-size: 0.88rem;
        letter-spacing: 0.015em;
    }

    .btn-appointment {
        padding: 11px 20px;
        font-size: 0.76rem;
    }
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #6FA8A8;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section - Estructura tipo ZEDAG */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 140px;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 85vh;
    width: 100%;
    max-width: 100%;
}

.hero-left {
    background: #6FA8A8;
    color: var(--white);
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-logo-top {
    margin-bottom: 30px;
}

.hero-logo-img {
    height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    color: var(--white);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 550px;
}

.hero-right {
    position: relative;
    overflow: hidden;
}

.hero-image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    transition: opacity 2s ease-in-out;
    max-width: 100%;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
    animation: kenBurns 5s ease-in-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Estilos del hero movidos a hero-left arriba */

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    background: var(--dark-orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    background: #D85C5C;
    border: 2px solid #D85C5C;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(216, 92, 92, 0.35);
}

.btn-secondary:hover {
    background: #C04A4A;
    border-color: #C04A4A;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(216, 92, 92, 0.45);
}

.hero-phone {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: fit-content;
}

.phone-icon {
    font-size: 2rem;
}

.phone-info {
    display: flex;
    flex-direction: column;
}

.phone-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

/* Estilos de hero-image y hero-logo eliminados - ahora se usa hero-right */

.hero-features {
    background: #6FA8A8;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px 0;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
    color: var(--white);
    position: relative;
    padding: 0 20px;
}

.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.3);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Secciones */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: #6FA8A8;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #D85C5C;
    margin-bottom: 20px;
}

.section-alt .section-title {
    color: var(--white);
}

.title-underline {
    width: 100px;
    height: 5px;
    background: var(--gradient-orange);
    margin: 0 auto 25px;
    border-radius: 3px;
}

.section-alt .title-underline {
    background: var(--orange);
}

.title-underline-small {
    width: 70px;
    height: 4px;
    background: var(--orange);
    margin: 15px 0 25px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

.content-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    border-top: 5px solid var(--primary-blue);
}

/* Quiénes Somos con imagen */
.quienes-somos-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.quienes-somos-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
}

.equipo-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 20px;
    max-width: 100%;
}

.quienes-somos-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    border-top: 5px solid var(--primary-blue);
}

.content-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-dark);
    text-align: justify;
}

.content-text strong {
    color: #6FA8A8;
    font-weight: 600;
}

/* Servicios */
.services-section {
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
    width: 100%;
    max-width: 100%;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 25px var(--shadow);
    border-top: 5px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card:nth-child(6) {
    animation-delay: 0.6s;
}

.service-card:nth-child(7) {
    animation-delay: 0.7s;
}

.service-card:nth-child(8) {
    animation-delay: 0.8s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px var(--shadow-strong);
    border-top-color: var(--orange);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #D85C5C;
    margin-bottom: 15px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-description {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Historia, Visión y Misión */
.historia-vision-mision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

.historia-card,
.vision-card,
.mission-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.historia-card::after,
.vision-card::after,
.mission-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-orange);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.historia-card:hover::after,
.vision-card:hover::after,
.mission-card:hover::after {
    transform: scaleX(1);
}

.historia-card:hover,
.vision-card:hover,
.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px var(--shadow-strong);
}

.historia-card {
    border-left: 6px solid var(--primary-blue);
}

.vision-card {
    border-left: 6px solid var(--primary-blue);
}

.mission-card {
    border-left: 6px solid var(--orange);
}

.vm-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #D85C5C;
    margin-bottom: 12px;
}

.historia-card .content-text,
.vision-card .content-text,
.mission-card .content-text {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

/* Contacto */
.contact-section {
    background: #6FA8A8;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section .title-underline {
    background: linear-gradient(to right, var(--orange), var(--white));
}

.contact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    border-color: var(--orange);
}

.contact-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--orange);
    font-weight: 600;
}

.contact-details a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    font-size: 1.05rem;
}

.contact-details a:hover {
    color: var(--orange);
    text-decoration: underline;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-visit {
    display: flex;
    align-items: center;
}

.visit-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 50px 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
}

.visit-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.visit-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--orange);
    font-weight: 700;
}

.visit-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0 30px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 150px;
    margin-bottom: 15px;
    object-fit: contain;
}

.footer-tagline {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
}

.footer-info {
    margin-top: 15px;
}

.footer-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 8px 0;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */

/* Pantallas grandes (1200px - 1400px) */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

/* Tablets grandes y pantallas medianas (769px - 968px) */
@media (max-width: 968px) {
    .container {
        padding: 0 15px;
    }

    .top-bar {
        font-size: 0.75rem;
        padding: 8px 0;
    }

    .top-bar-left {
        gap: 12px;
        flex-wrap: wrap;
    }

    .top-bar-item {
        font-size: 0.75rem;
    }

    .top-bar-item span:not(.top-bar-icon) {
        display: none;
    }

    .header {
        top: 0;
    }

    .logo {
        height: 75px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 75px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 2rem 0;
        gap: 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }

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

    .btn-appointment {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        margin-top: 75px;
        min-height: auto;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-left {
        padding: 50px 30px;
        text-align: center;
    }

    .hero-logo-img {
        height: 140px;
    }

    .hero-title {
        font-size: 2.3rem;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-right {
        min-height: 400px;
    }

    .hero-buttons {
        justify-content: center;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 35px;
        font-size: 0.95rem;
    }

    .hero-features {
        padding: 40px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-item:not(:last-child)::after {
        display: none;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .quienes-somos-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .quienes-somos-content {
        padding: 35px;
    }

    .content-text {
        font-size: 1.05rem;
    }

    .historia-vision-mision-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .historia-card,
    .vision-card,
    .mission-card {
        padding: 30px 25px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card {
        padding: 35px 25px;
    }

    .service-icon {
        font-size: 3.5rem;
    }

    .service-title {
        font-size: 1.2rem;
        min-height: auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .clientes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .testimonial-card {
        padding: 35px 25px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .location-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .location-info {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        order: 1;
    }

    .location-map {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        order: 2;
    }

    .location-map iframe {
        height: 350px;
        width: 100%;
        max-width: 100%;
    }

    .location-item {
        padding: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-item {
        padding: 25px;
    }

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

    .footer {
        padding: 40px 0 25px;
    }
}

/* Tablets y móviles grandes (481px - 768px) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }

    .top-bar {
        font-size: 0.7rem;
        padding: 6px 0;
        display: none; /* Ocultar top-bar en móviles para ahorrar espacio */
    }

    .top-bar-left {
        gap: 10px;
    }

    .header {
        top: 0;
    }

    .logo {
        height: 60px;
        max-width: 150px;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .nav-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .hero {
        margin-top: 60px;
    }

    .hero-left {
        padding: 40px 20px;
    }

    .hero-logo-img {
        height: 120px;
        margin-bottom: 25px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-right {
        min-height: 350px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 14px 30px;
        font-size: 0.95rem;
    }

    .hero-features {
        padding: 35px 0;
    }

    .feature-icon {
        font-size: 3rem;
    }

    .feature-item h3 {
        font-size: 1.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .quienes-somos-content {
        padding: 30px 20px;
    }

    .content-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    .historia-card,
    .vision-card,
    .mission-card {
        padding: 25px 20px;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .vm-icon {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .service-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .service-description {
        font-size: 0.95rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .clientes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .testimonial-card {
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .testimonial-quote {
        font-size: 3.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .location-content {
        grid-template-columns: 1fr !important;
        gap: 25px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .location-info {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        order: 1;
    }

    .location-map {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        order: 2;
    }

    .location-item {
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .location-icon {
        font-size: 2.5rem;
        width: 50px;
        height: 50px;
        margin: 0 auto 15px;
    }

    .location-details {
        width: 100%;
    }

    .location-details h3 {
        font-size: 1.3rem;
        text-align: center;
    }

    .location-details p {
        font-size: 1rem;
        text-align: center;
        word-wrap: break-word;
    }

    .location-map iframe {
        height: 300px;
        width: 100%;
        max-width: 100%;
    }

    .contact-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        font-size: 2.5rem;
    }

    .contact-details h3 {
        font-size: 1.3rem;
    }

    .contact-details a,
    .contact-details p {
        font-size: 1rem;
    }

    .visit-card {
        padding: 35px 25px;
    }

    .visit-card h3 {
        font-size: 1.8rem;
    }

    .visit-card p {
        font-size: 1rem;
    }

    .footer-logo-img {
        height: 50px;
    }

    .footer-tagline {
        font-size: 0.9rem;
    }

    .footer-info p {
        font-size: 0.9rem;
    }
}

/* Móviles pequeños (320px - 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    * {
        -webkit-tap-highlight-color: transparent;
    }

    .container {
        padding: 0 12px;
        width: 100%;
        max-width: 100%;
    }

    .top-bar {
        display: none; /* Ocultar completamente en móviles pequeños */
    }

    .header {
        top: 0;
    }

    .logo {
        height: 50px;
        max-width: 130px;
    }

    .navbar {
        padding: 0.7rem 0;
    }

    .navbar .container {
        padding: 0 12px;
    }

    .nav-menu {
        top: 50px;
        padding: 1.5rem 0;
        max-height: calc(100vh - 50px);
        overflow-y: auto;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.8rem 0;
        display: block;
    }

    .hamburger {
        width: 30px;
        height: 30px;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }

    .hero {
        margin-top: 50px;
    }

    .hero-left {
        padding: 30px 15px;
    }

    .hero-logo-img {
        height: 90px;
        width: auto;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.25;
        margin-bottom: 15px;
        word-wrap: break-word;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.6;
        word-wrap: break-word;
    }

    .hero-right {
        min-height: 250px;
        max-height: 300px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 25px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-features {
        padding: 30px 0;
    }

    .features-grid {
        gap: 20px;
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .feature-item h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .title-underline {
        width: 80px;
        height: 4px;
        margin-bottom: 20px;
    }

    .quienes-somos-grid {
        gap: 30px;
    }

    .quienes-somos-content {
        padding: 25px 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .quienes-somos-image {
        width: 100%;
        max-width: 100%;
    }

    .equipo-img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .content-text {
        font-size: 0.95rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .historia-vision-mision-grid {
        gap: 20px;
    }

    .historia-card,
    .vision-card,
    .mission-card {
        padding: 20px 15px;
    }

    .card-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .title-underline-small {
        width: 60px;
        height: 3px;
        margin: 12px 0 20px;
    }

    .vm-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .historia-card .content-text,
    .vision-card .content-text,
    .mission-card .content-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card {
        padding: 25px 18px;
        animation-delay: 0s !important;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .service-icon {
        font-size: 2.8rem;
        margin-bottom: 18px;
    }

    .service-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .service-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
    }

    .clientes-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .testimonial-card {
        padding: 25px 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .testimonial-quote {
        font-size: 3rem;
        top: -5px;
        left: -3px;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-top: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .testimonial-author {
        padding-top: 15px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .testimonial-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        flex-shrink: 0;
    }

    .testimonial-name {
        font-size: 1rem;
        word-wrap: break-word;
    }

    .testimonial-role {
        font-size: 0.85rem;
        word-wrap: break-word;
    }

    .location-content {
        grid-template-columns: 1fr !important;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .location-info {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        order: 1;
    }

    .location-item {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-direction: column;
        text-align: center;
    }

    .location-icon {
        font-size: 2.2rem;
        width: 45px;
        height: 45px;
        margin: 0 auto 12px;
    }

    .location-details {
        width: 100%;
    }

    .location-details h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
        text-align: center;
    }

    .location-details p {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: center;
        word-wrap: break-word;
    }

    .location-map {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
        order: 2;
    }

    .location-map iframe {
        height: 280px;
        width: 100%;
        max-width: 100%;
    }

    .contact-grid {
        gap: 25px;
    }

    .contact-item {
        padding: 18px 15px;
    }

    .contact-icon {
        font-size: 2.2rem;
    }

    .contact-details h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .contact-details a,
    .contact-details p {
        font-size: 0.95rem;
    }

    .visit-card {
        padding: 30px 20px;
    }

    .visit-card h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .visit-card p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .footer {
        padding: 35px 0 20px;
    }

    .footer-logo-img {
        height: 45px;
        margin-bottom: 12px;
    }

    .footer-tagline {
        font-size: 0.85rem;
    }

    .footer-info {
        margin-top: 12px;
    }

    .footer-info p {
        font-size: 0.85rem;
        margin: 6px 0;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* Móviles muy pequeños (hasta 360px) */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }

    .logo {
        height: 45px;
        max-width: 120px;
    }

    .navbar {
        padding: 0.6rem 0;
    }

    .nav-menu {
        top: 45px;
    }

    .hero {
        margin-top: 45px;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-logo-img {
        height: 80px;
    }

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

    .service-card,
    .testimonial-card,
    .historia-card,
    .vision-card,
    .mission-card {
        padding: 20px 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .section {
        padding: 40px 0;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Testimonios */
/* Nuestros Clientes */
.clientes-section .section-title {
    color: var(--white);
}

.clientes-section .title-underline {
    background: var(--orange);
}

.clientes-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cliente-logo-item {
    background: var(--white);
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cliente-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.cliente-logo {
    max-width: 140px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
}

.cliente-logo-item:hover .cliente-logo {
    filter: grayscale(0%);
}

.testimonials-section {
    background: #6FA8A8;
}

.testimonials-section .section-title {
    color: var(--white);
}

.testimonials-section .title-underline {
    background: var(--orange);
}

.testimonials-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 5px solid #D85C5C;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px var(--shadow-strong);
}

.testimonial-content {
    margin-bottom: 30px;
    position: relative;
}

.testimonial-quote {
    font-size: 4rem;
    color: #D85C5C;
    line-height: 1;
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
    position: absolute;
    top: -10px;
    left: -5px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #6FA8A8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Nuestra Ubicación */
.location-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 50px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.location-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    border-top: 5px solid #D85C5C;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.location-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.location-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6FA8A8;
    border-radius: 15px;
}

.location-details {
    flex: 1;
}

.location-details h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #D85C5C;
    margin-bottom: 15px;
}

.location-details p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.9;
    margin: 0;
}

.location-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    height: 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.location-map iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}
