/* ============================================
   POLICLÍNICO ZOE SALUD - ESTILOS 2026
   Diseño Moderno con 3 Columnas de Servicios
   Colores: Azul #1e40af, Rojo #dc2626, Verde #059669
   
   ESTRUCTURA:
   - Mobile First: 1 columna
   - Tablet (768px+): 2 columnas
   - Laptop (1024px+): 3 columnas separadas
   ============================================ */

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

:root {
    --blue-primary: #1e40af;
    --blue-light: #3b82f6;
    --blue-dark: #1e3a8a;
    --red-secondary: #dc2626;
    --red-light: #ef4444;
    --green-accent: #059669;
    --green-light: #10b981;
    --green-dark: #047857;
    --dark: #1f2937;
    --gray: #6b7280;
    --light: #f9fafb;
    --white: #ffffff;
    --gray-light: #f3f4f6;
    --gradient-blue: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 100%);
    --gradient-red: linear-gradient(135deg, var(--red-secondary) 0%, var(--red-light) 100%);
    --gradient-green: linear-gradient(135deg, var(--green-accent) 0%, var(--green-light) 100%);
    --gradient-main: linear-gradient(135deg, var(--blue-primary) 0%, var(--green-accent) 50%, var(--red-secondary) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--light);
    -webkit-font-smoothing: antialiased;
}

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

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    background: var(--green-accent);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    animation: whatsapp-float 3s ease-in-out infinite;
}

.whatsapp-tooltip { display: none; }

@keyframes whatsapp-float {
    0%, 100% { box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(5, 150, 105, 0.7); }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    min-height: 65px;
}

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

.logo-icon {
    font-size: 28px;
    color: var(--blue-primary);
    animation: heartbeat 2.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 11px;
    color: var(--gray);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.logo-brand {
    font-size: 18px;
    font-weight: 800;
    color: var(--blue-primary);
    letter-spacing: -0.3px;
    text-transform: uppercase;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

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

.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    list-style: none;
    padding: 80px 30px 30px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 18px;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 60px;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   CARRUSEL
   ============================================ */
.carousel-section {
    margin-top: 65px;
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: white;
    z-index: 2;
    animation: slideUp 1s ease;
    padding: 0 20px;
    max-width: 90%;
}

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

.slide-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
}

.slide-content p {
    font-size: 14px;
    font-weight: 300;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 20px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: var(--radius-lg);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: white;
    transform: scale(1.3);
    border-color: var(--blue-primary);
}

.phone-center {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--red-secondary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
}

/* ============================================
   MISIÓN
   ============================================ */
.mission-section {
    padding: 60px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 16px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.title-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-main);
    margin: 0 auto 20px;
    border-radius: 3px;
}

.mission-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 16px;
    text-align: center;
}

.mission-icon-box {
    width: 140px;
    height: 140px;
    background: var(--gradient-blue);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 55px;
    color: white;
    animation: float 4s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

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

.mission-text h3 {
    font-size: 22px;
    color: var(--blue-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

/* ============================================
   SERVICIOS - 3 COLUMNAS INTERACTIVAS
   ============================================ */
.services-section {
    padding: 60px 0;
    background: var(--gray-light);
}

.services-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 16px;
}

/* COLUMNA INDIVIDUAL */
.service-column {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* ENCABEZADO DE COLUMNA */
.column-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    border-bottom: 3px solid transparent;
}

.column-header:hover {
    background: var(--gray-light);
}

.service-column.active .column-header {
    background: var(--gradient-blue);
    color: white;
    border-bottom-color: var(--blue-primary);
}

.column-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.urologia-bg { background: var(--gradient-blue); }
.terapia-bg { background: var(--gradient-green); }
.ecografia-bg { background: var(--gradient-red); }

.column-header h3 {
    font-size: 20px;
    font-weight: 700;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.column-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 3px;
    font-weight: 300;
}

.column-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
    color: var(--gray);
}

.service-column.active .column-arrow {
    transform: rotate(180deg);
    color: white;
}

/* ITEMS DE LA COLUMNA */
.column-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-column.active .column-items {
    max-height: 2000px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-light);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.service-card:last-child {
    border-bottom: none;
}

.service-card:hover, .service-card:active {
    background: var(--gray-light);
    transform: translateX(10px);
}

.service-card.active {
    background: var(--gray-light);
}

.service-card-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover .service-card-img,
.service-card.active .service-card-img {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.service-card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.6), rgba(5, 150, 105, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card.active .service-card-img::after {
    opacity: 1;
}

.service-card-overlay {
    flex: 1;
}

.service-card-overlay h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.service-card.active .service-card-overlay h4 {
    color: var(--blue-primary);
}

.service-card-overlay p {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.4;
}

.service-card-overlay i {
    color: var(--green-accent);
    font-size: 14px;
    margin-right: 8px;
}

/* ============================================
   GALERÍA - 4x4 GRID CON POPUP
   ============================================ */
.gallery-section {
    padding: 60px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-md);
    aspect-ratio: 1 / 1;
}

.gallery-item:hover, .gallery-item:active {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(30, 64, 175, 0.95), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:active .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    color: var(--green-light);
}

.gallery-overlay h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-overlay p {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 300;
}

/* MODALES POPUP EXTERNOS */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.4s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.gallery-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: var(--dark);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--red-secondary);
    color: white;
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-info {
    padding: 30px;
}

.modal-info h3 {
    font-size: 24px;
    color: var(--blue-primary);
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-info h3 i {
    color: var(--green-accent);
}

.modal-info p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

.modal-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.modal-features span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
    padding: 8px 15px;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
}

.modal-features span i {
    color: var(--green-accent);
    font-size: 12px;
}

/* ============================================
   SERVICIOS - VENTANA INTERACTIVA
   ============================================ */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.service-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.4s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.service-modal.active .service-modal-content {
    transform: scale(1);
}

.service-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: var(--dark);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    line-height: 1;
}

.service-modal-close:hover {
    background: var(--red-secondary);
    color: white;
    transform: rotate(90deg);
}

.service-modal-img {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-modal-info {
    padding: 25px;
}

.service-modal-info h3 {
    font-size: 22px;
    color: var(--blue-primary);
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-modal-info h3 i {
    color: var(--green-accent);
}

.service-modal-info p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 18px;
}

.service-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--gradient-blue);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.service-modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

/* ============================================
   REDES SOCIALES
   ============================================ */
.social-section {
    padding: 60px 0;
    background: white;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
}

.social-card {
    padding: 30px 25px;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

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

.social-card:hover::before, .social-card:active::before {
    left: 100%;
}

.social-card:hover, .social-card:active {
    transform: translateY(-10px) scale(1.02);
}

.social-card.facebook { 
    background: linear-gradient(135deg, #1877f2, #0d5cb6);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}
.social-card.instagram { 
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    box-shadow: 0 8px 25px rgba(221, 42, 123, 0.3);
}
.social-card.whatsapp { 
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}
.social-card.youtube { 
    background: linear-gradient(135deg, #ff0000, #cc0000);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.social-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.social-card:hover .social-icon, .social-card:active .social-icon {
    transform: rotateY(360deg) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.social-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-card p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 15px;
    font-weight: 300;
}

.social-hover {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

.social-card:hover .social-hover, .social-card:active .social-hover {
    opacity: 1;
    transform: translateY(0);
}

.social-hover span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    font-weight: 600;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-size: 13px;
}

/* ============================================
   MAPA
   ============================================ */
.map-section {
    padding: 60px 0;
    background: var(--gray-light);
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
    margin: 0 16px;
}

.map-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px 20px;
    background: white;
    border-bottom: 2px solid var(--gray-light);
}

.map-frame {
    width: 100%;
    height: 300px;
    background: var(--gray-light);
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-section {
    padding: 60px 0;
    background: white;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 16px;
}

.contact-info h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.info-card {
    text-align: center;
    padding: 20px 10px;
    background: var(--gray-light);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.info-card i {
    font-size: 24px;
    color: var(--blue-primary);
    margin-bottom: 10px;
    display: block;
}

.info-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 800;
}

.info-card p {
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
}

.contact-form {
    background: var(--gray-light);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-form h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--dark);
    text-align: center;
    text-transform: uppercase;
}

.form-group {
    position: relative;
    margin-bottom: 18px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: var(--dark);
    -webkit-appearance: none;
    appearance: none;
}

.form-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    transition: color 0.3s ease;
    font-size: 16px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-blue);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
}

.footer-content {
    text-align: center;
    padding: 0 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.footer-logo i {
    color: var(--green-accent);
    font-size: 26px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

/* ============================================
   MEDIA QUERIES - TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .navbar {
        padding: 15px 24px;
        min-height: 75px;
    }

    .logo-icon {
        font-size: 32px;
    }

    .logo-brand {
        font-size: 20px;
    }

    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: none;
        flex-direction: row;
        justify-content: flex-end;
        gap: 30px;
        padding: 0;
        box-shadow: none;
    }

    .nav-link {
        font-size: 14px;
    }

    .carousel-section {
        margin-top: 75px;
        height: 500px;
    }

    .slide-content h2 {
        font-size: 36px;
    }

    .slide-content p {
        font-size: 17px;
    }

    .phone-number {
        padding: 14px 28px;
        font-size: 17px;
    }

    .section-title {
        font-size: 34px;
    }

    .mission-content {
        flex-direction: row;
        text-align: left;
        gap: 50px;
    }

    .mission-icon-box {
        width: 180px;
        height: 180px;
        font-size: 70px;
    }

    .services-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 24px;
    }

    .gallery-overlay h4 {
        font-size: 18px;
    }

    .modal-content {
        max-width: 700px;
    }

    .modal-image {
        height: 350px;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 24px;
    }

    .social-icon {
        width: 75px;
        height: 75px;
        font-size: 32px;
    }

    .map-container {
        margin: 0 24px;
    }

    .map-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 25px;
        padding: 30px;
    }

    .map-frame {
        height: 400px;
    }

    .contact-wrapper {
        padding: 0 24px;
    }

    .contact-form {
        padding: 40px 35px;
    }
}

/* ============================================
   MEDIA QUERIES - LAPTOP/DESKTOP (1024px+)
   3 COLUMNAS SEPARADAS
   ============================================ */
@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .navbar {
        padding: 18px 40px;
        min-height: 85px;
    }

    .logo-icon {
        font-size: 38px;
    }

    .logo-brand {
        font-size: 24px;
    }

    .nav-link {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .carousel-section {
        margin-top: 85px;
        height: 650px;
    }

    .slide-content h2 {
        font-size: 56px;
    }

    .slide-content p {
        font-size: 22px;
    }

    .phone-center {
        bottom: 100px;
    }

    /* 3 COLUMNAS SEPARADAS EN LAPTOP */
    .services-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 1300px;
        margin: 0 auto;
        padding: 0 40px;
    }

    .service-column {
        border-radius: var(--radius-lg);
    }

    .column-header {
        padding: 30px 25px;
        gap: 18px;
    }

    .column-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }

    .column-header h3 {
        font-size: 22px;
    }

    .service-card {
        padding: 20px 25px;
        gap: 18px;
    }

    .service-card-img {
        width: 70px;
        height: 70px;
    }

    .service-card-overlay h4 {
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 0 40px;
        max-width: 1400px;
        margin: 0 auto;
    }

    .gallery-item {
        aspect-ratio: 1 / 1;
    }

    .modal-content {
        max-width: 900px;
    }

    .modal-image {
        height: 400px;
    }

    .modal-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        max-width: 1100px;
        margin: 0 auto;
    }

    .social-card {
        padding: 50px 35px;
    }

    .social-icon {
        width: 90px;
        height: 90px;
        font-size: 40px;
        margin-bottom: 20px;
    }

    .map-container {
        max-width: 1100px;
        margin: 0 auto;
        border-radius: var(--radius-lg);
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1.2fr;
        display: grid;
        gap: 80px;
        max-width: 1100px;
        margin: 0 auto;
    }

    .contact-form {
        padding: 50px 45px;
    }

    .whatsapp-float {
        width: 70px;
        height: 70px;
        font-size: 35px;
        bottom: 35px;
        left: 35px;
    }

    .whatsapp-tooltip {
        display: block;
        position: absolute;
        right: 85px;
        background: var(--dark);
        color: white;
        padding: 10px 18px;
        border-radius: 25px;
        font-size: 14px;
        white-space: nowrap;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .whatsapp-tooltip::after {
        content: '';
        position: absolute;
        right: -8px;
        top: 50%;
        transform: translateY(-50%);
        border-left: 8px solid var(--dark);
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }

    .whatsapp-float:hover .whatsapp-tooltip {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   OPTIMIZACIONES TOUCH
   ============================================ */
* {
    -webkit-tap-highlight-color: transparent;
}

button, a, input, select, textarea {
    touch-action: manipulation;
}

/* ============================================
   ANIMACIONES DE ENTRADA
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MEDIA QUERIES - MÓVILES PEQUEÑOS (360px-)
   ============================================ */
@media (max-width: 360px) {
    .logo-brand {
        font-size: 15px;
    }

    .slide-content h2 {
        font-size: 20px;
    }

    .mission-icon-box {
        width: 120px;
        height: 120px;
        font-size: 45px;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   KEYFRAMES DINÁMICOS
   ============================================ */
@keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes slideUp {
    from { opacity: 1; transform: translate(-50%, 0); }
    to { opacity: 0; transform: translate(-50%, -20px); }
}
