/* ==========================================================================
   TERAPIA SÉNIOR - Estilos principales
   Colores corporativos: #FBB909 (dorado), #016a7d (azul verdoso)
   ========================================================================== */

/* Variables CSS */
:root {
    --color-primary: #FBB909;
    --color-primary-light: #fcd34d;
    --color-primary-dark: #d99e08;
    --color-secondary: #016a7d;
    --color-secondary-light: #0891a1;
    --color-secondary-dark: #015461;
    --color-warm-cream: #fef9e7;
    --color-warm-beige: #f5f0e8;
    --color-text: #3d4852;
    --color-text-light: #6b7280;
    --color-white: #ffffff;
    --color-success: #10b981;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Reset básico */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   TIPOGRAFÍA
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-secondary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-secondary-dark);
    box-shadow: 0 4px 15px rgba(251, 185, 9, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 185, 9, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(1, 106, 125, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 106, 125, 0.5);
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-secondary-dark);
}

.btn-transport {
    background-color: #dc2626; /* Fallback para navegadores sin soporte de gradientes */
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff; /* Fallback sin variable CSS */
    color: var(--color-white);
    forced-color-adjust: none; /* Evita que el modo de alto contraste de Windows anule los colores */
    -ms-high-contrast-adjust: none; /* Edge Legacy */
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
    position: relative;
    padding-left: 50px;
    padding-right: 40px;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-transport::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0; /* Reemplaza 'inset: 0' para compatibilidad con Edge antiguo */
    border-radius: 50px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: pulseTransport 2s ease-in-out infinite;
    z-index: -1;
    opacity: 0.6;
    filter: blur(8px);
}

@keyframes pulseTransport {
    0%, 100% { 
        opacity: 0.4;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.btn-transport:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.8);
}

.btn-transport:hover::before {
    animation-play-state: paused;
    opacity: 0.9;
    transform: scale(1.1);
}

.btn-transport i {
    margin-right: 8px;
    font-size: 1.2rem;
    animation: carMove 1.5s ease-in-out infinite;
}

@keyframes carMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.transport-badge {
    position: absolute;
    top: -8px;
    left: 10px;
    background: var(--color-primary);
    color: var(--color-secondary-dark);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(251, 185, 9, 0.6);
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-3px) rotate(3deg); }
}

/* ==========================================================================
   HEADER / NAVEGACIÓN
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 55px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: var(--transition);
}

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

/* Mostrar texto alternativo si la imagen no carga o no existe */
@media (min-width: 769px) {
    .logo-image + .logo-text {
        display: none;
    }
    
    /* Si hay error cargando imagen, mostrar texto */
    img.logo-image:not([src]) + .logo-text,
    img.logo-image[alt]:after {
        display: block;
    }
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-secondary);
    display: none;
}

.logo-text span {
    color: var(--color-primary);
}

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

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--color-secondary);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-secondary);
}

.header-contact i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* Menú hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(1, 106, 125, 0.85), rgba(1, 84, 97, 0.9)),
                url('../imagenes/Exterior%20copia.jpeg') center/cover no-repeat;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--color-white), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-subtitle {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-secondary-dark);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 35px;
    line-height: 1.8;
}

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

.hero-features {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
}

.hero-feature i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.hero-feature span {
    font-weight: 500;
}

/* ==========================================================================
   SECCIÓN TITULO
   ========================================================================== */

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

.section-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-secondary-dark);
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* ==========================================================================
   SOBRE NOSOTROS
   ========================================================================== */

.about {
    padding: 100px 0;
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-primary);
    border-radius: 20px;
    z-index: -1;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 20px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: var(--color-primary);
}

.about-badge span {
    font-size: 0.9rem;
}

.about-content h2 {
    margin-bottom: 25px;
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-feature i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary-dark);
}

.about-feature span {
    font-weight: 500;
}

/* ==========================================================================
   ESPECIALIDADES
   ========================================================================== */

.specialties {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    position: relative;
    overflow: hidden;
}

.specialties::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.specialties .section-header h2 {
    color: var(--color-white);
}

.specialties .section-label {
    background: var(--color-primary);
}

.specialties .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    position: relative;
    z-index: 1;
}

.specialty-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.specialty-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.specialty-icon {
    width: 70px;
    height: 70px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.specialty-icon i {
    font-size: 1.8rem;
    color: var(--color-secondary-dark);
}

.specialty-card h4 {
    color: var(--color-white);
    font-size: 1rem;
    font-family: var(--font-primary);
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */

.services {
    padding: 100px 0;
    background: var(--color-white);
}

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

.service-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(1, 106, 125, 0.8), transparent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-content {
    padding: 30px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--color-secondary-dark);
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   SERVICIO A DOMICILIO
   ========================================================================== */

.home-service {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-warm-beige) 50%, var(--color-white) 100%);
    position: relative;
    overflow: hidden;
}

.home-service::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 185, 9, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.home-service .container {
    position: relative;
    z-index: 1;
}

.home-service-layout {
    margin-top: 60px;
}

/* Hero Image con Badge */
.home-service-hero {
    margin-bottom: 50px;
}

.hero-image-wrapper {
    position: relative;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0% 20%;
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 106, 125, 0.85) 0%, rgba(1, 106, 125, 0.4) 100%);
}

.hero-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--color-white);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    min-width: 140px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-badge i {
    font-size: 2.5rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 10px;
}

.hero-badge .badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
}

.hero-badge .badge-text {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 600;
    margin-top: 5px;
}

/* Grid de tarjetas premium */
.home-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.service-premium-card {
    background: var(--color-white);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(251, 185, 9, 0.1);
    position: relative;
    overflow: hidden;
}

.service-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-premium-card:hover::before {
    transform: scaleX(1);
}

.service-premium-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

.card-large {
    grid-column: span 3;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-warm-cream) 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    position: relative;
}

.card-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background: inherit;
    opacity: 0.3;
    filter: blur(15px);
    z-index: -1;
}

.card-icon.hospital {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.card-icon.therapy {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.card-icon.family {
    background: linear-gradient(135deg, #10b981, #059669);
}

.card-icon i {
    font-size: 1.8rem;
    color: var(--color-white);
}

.card-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.15;
    font-family: var(--font-secondary);
    line-height: 1;
}

.service-premium-card h3 {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 12px;
}

.card-intro {
    color: var(--color-text-light);
    font-size: 1rem;
    margin-bottom: 25px;
    font-style: italic;
}

.premium-list {
    list-style: none;
    padding: 0;
}

.premium-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 12px;
    transition: var(--transition);
}

.premium-list li:hover {
    background: rgba(251, 185, 9, 0.05);
    transform: translateX(5px);
}

.list-icon {
    min-width: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-icon i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.list-text {
    color: var(--color-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Terapias Items */
.therapy-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.therapy-item {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    padding: 20px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-white);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(1, 106, 125, 0.3);
}

.therapy-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(1, 106, 125, 0.4);
}

.therapy-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.therapy-item span {
    font-weight: 600;
    font-size: 1rem;
}

/* Banner de Transporte */
.transport-banner {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    border-radius: 30px;
    padding: 45px 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(1, 106, 125, 0.3);
}

.transport-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.transport-decoration {
    position: absolute;
    bottom: -30px;
    right: 50px;
    width: 200px;
    height: 200px;
    background: var(--color-primary);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(40px);
}

.transport-content {
    display: flex;
    align-items: center;
    gap: 35px;
    position: relative;
    z-index: 2;
}

.transport-icon-large {
    width: 90px;
    height: 90px;
    min-width: 90px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(251, 185, 9, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(251, 185, 9, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(251, 185, 9, 0.6); }
}

.transport-icon-large i {
    font-size: 2.5rem;
    color: var(--color-secondary-dark);
}

.transport-info h4 {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: var(--font-secondary);
}

.transport-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.transport-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.transport-location i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.transport-location span {
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
}

/* ==========================================================================
   METODOLOGÍA
   ========================================================================== */

.methodology {
    padding: 100px 0;
    background: var(--color-warm-beige);
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -10px;
    width: 20px;
    height: 2px;
    background: var(--color-primary);
}

.step-card:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.step-card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--color-secondary);
    font-family: var(--font-primary);
    font-weight: 600;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Áreas de trabajo */
.work-areas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 60px;
}

.work-area {
    background: var(--color-white);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.work-area:hover {
    border-bottom-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.work-area i {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.work-area h4 {
    font-size: 1rem;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-weight: 600;
}

/* ==========================================================================
   INSTALACIONES / GALERÍA
   ========================================================================== */

.facilities {
    padding: 100px 0;
    background: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 106, 125, 0.9), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ==========================================================================
   EQUIPO / TERAPEUTA
   ========================================================================== */

.team {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-warm-cream), var(--color-warm-beige));
}

.team-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    background: var(--color-white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    margin: 0 auto;
}

.team-image {
    position: relative;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.team-role {
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.team-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.credential {
    background: var(--color-warm-cream);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-text);
}

.team-info p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */

.contact {
    padding: 100px 0;
    background: var(--color-secondary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.contact .section-header h2,
.contact .section-header p {
    color: var(--color-white);
}

.contact .section-label {
    background: var(--color-primary);
}

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

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: var(--color-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.4rem;
    color: var(--color-secondary-dark);
}

.contact-item h4 {
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.contact-item a:hover {
    color: var(--color-primary);
}

.registro-sanitario {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    border-left: 4px solid var(--color-primary);
}

.registro-sanitario h4 {
    color: var(--color-primary);
    margin-bottom: 5px;
}

/* Formulario */
.contact-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(251, 185, 9, 0.2);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .btn {
    width: 100%;
    padding: 16px;
}

/* Mapa */
.map-container {
    margin-top: 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: #0a3d47;
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 70px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: var(--color-white);
    margin-bottom: 20px;
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer h4 {
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 10px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--color-primary);
    width: 20px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .specialties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .methodology-steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .step-card:nth-child(3)::after {
        display: none;
    }
    
    .home-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-large {
        grid-column: span 2;
    }
    
    .work-areas {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 45px;
        max-width: 150px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .hamburger {
        display: flex;
    }
    
    .header-contact {
        display: none;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image::before {
        display: none;
    }
    
    .about-badge {
        right: 20px;
    }
    
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Home Service Responsive */
    .hero-image-wrapper {
        height: 300px;
    }
    
    .hero-badge {
        bottom: 20px;
        right: 20px;
        padding: 20px;
        min-width: 120px;
    }
    
    .hero-badge i {
        font-size: 2rem;
    }
    
    .hero-badge .badge-number {
        font-size: 1.6rem;
    }
    
    .home-service-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .card-large {
        grid-column: span 1;
    }
    
    .service-premium-card {
        padding: 28px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon i {
        font-size: 1.5rem;
    }
    
    .card-number {
        font-size: 2.5rem;
    }
    
    .transport-banner {
        padding: 35px 30px;
    }
    
    .transport-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .transport-info h4 {
        font-size: 1.5rem;
    }
    
    .transport-location {
        justify-content: center;
    }
    
    .methodology-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-card::after {
        display: none;
    }
    
    .work-areas {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-card {
        grid-template-columns: 1fr;
    }
    
    .team-info {
        padding: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        height: 60px;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-image {
        height: 40px;
        max-width: 130px;
    }
    
    .footer-logo {
        height: 50px;
        max-width: 180px;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    /* Home Service Mobile */
    .hero-image-wrapper {
        height: 250px;
        border-radius: 20px;
    }
    
    .hero-badge {
        bottom: 15px;
        right: 15px;
        padding: 15px;
        min-width: 100px;
    }
    
    .hero-badge i {
        font-size: 1.5rem;
    }
    
    .hero-badge .badge-number {
        font-size: 1.4rem;
    }
    
    .hero-badge .badge-text {
        font-size: 0.8rem;
    }
    
    .service-premium-card {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .card-icon {
        width: 55px;
        height: 55px;
    }
    
    .card-icon i {
        font-size: 1.3rem;
    }
    
    .card-number {
        font-size: 2rem;
    }
    
    .service-premium-card h3 {
        font-size: 1.3rem;
    }
    
    .card-intro {
        font-size: 0.95rem;
    }
    
    .premium-list li {
        padding: 10px;
        gap: 10px;
    }
    
    .list-text {
        font-size: 0.9rem;
    }
    
    .therapy-item {
        padding: 18px 20px;
        gap: 12px;
    }
    
    .therapy-item i {
        font-size: 1.3rem;
    }
    
    .therapy-item span {
        font-size: 0.95rem;
    }
    
    .transport-banner {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .transport-icon-large {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }
    
    .transport-icon-large i {
        font-size: 2rem;
    }
    
    .transport-info h4 {
        font-size: 1.3rem;
    }
    
    .transport-info p {
        font-size: 0.95rem;
    }
    
    .transport-location {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .btn-transport {
        font-size: 0.8rem;
        padding: 12px 35px 12px 45px;
        letter-spacing: 0.5px;
    }
    
    .btn-transport i {
        font-size: 1rem;
    }
    
    .transport-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        left: 8px;
    }
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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