/* Paleta de Colores Solicitada */
:root {
    --primary: #58468C; /* Logo y Títulos principales */
    --highlight: #7E77F2; /* botones o resaltados */
    --trust: #49C5B1; /* Detalles de salud/confianza */
    --text: #4D4D4D; /* Texto de lectura */
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border: #e2e8f0;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5, h6, .logo-text {
    font-family: 'Code Pro', 'Montserrat', sans-serif;
    color: var(--primary);
    font-weight: 700;
}

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

.section-padding {
    padding: 80px 0;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #6a63e8;
    border-color: #6a63e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(126, 119, 242, 0.3);
}

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

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

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

.btn-outline:hover {
    background-color: var(--highlight);
    color: var(--white);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Cabecera */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

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

.logo-text {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.logo-img {
    max-height: 100px;
    width: auto;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    color: var(--text);
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--highlight);
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* Sección Hero */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary); 
    /* Placeholder para tu imagen. Cambia esta línea cuando tengas la foto: */
    /* background-image: url('tu-imagen-fondo.jpg'); */
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Filtro de color encima del hero según solicitado */
    background: linear-gradient(135deg, rgba(88, 70, 140, 0.9) 0%, rgba(73, 197, 177, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Tarjetas Superpuestas */
.info-cards {
    margin-top: -80px; /* Hace que se superpongan con el Hero */
    position: relative;
    z-index: 10;
}

.cards-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 500px;
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 5px solid var(--trust); /* Detalle de confianza */
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

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

.card p {
    color: var(--text);
}

/* Sección Especialidades */
.specialties-grid {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.specialties-title {
    flex: 1;
}

.specialties-title h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.trust-text {
    color: var(--trust);
    font-weight: 600;
    font-size: 1.1rem;
    border-left: 4px solid var(--trust); /* Marca lateral de color confianza */
    padding-left: 15px;
}

.specialties-list {
    flex: 2;
    display: flex;
    gap: 40px;
}

.specialty-col {
    flex: 1;
}

.specialty-col ul {
    list-style: none;
}

.specialty-col li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    position: relative;
    padding-left: 30px;
}

.specialty-col li:last-child {
    border-bottom: none;
}

.specialty-col li::before {
    content: '✓';
    color: var(--trust);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Franja de Galería */
.gallery {
    display: flex;
    height: 350px;
    width: 100%;
    margin-top: 40px;
}

.gallery-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 40px;
    color: var(--white);
    transition: flex 0.4s ease, filter 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
}

.gallery-item h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.gallery-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 320px;
    margin: 0 auto;
}

.gallery-item:hover {
    flex: 1.3; /* Efecto expandir */
    filter: brightness(1.05);
}

/* Gradients for News Items */
.news-item-1 {
    background: linear-gradient(135deg, #58468C 0%, #463770 100%);
}

.news-item-2 {
    background: linear-gradient(135deg, #7E77F2 0%, #635dbd 100%);
}

.news-item-3 {
    background: linear-gradient(135deg, #49C5B1 0%, #3aa090 100%);
}

/* Pie de Página */
.main-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 80px 0 20px;
    margin-top: 0;
}

.main-footer h2, .main-footer h4 {
    color: var(--white);
}

.footer-logo-img {
    max-height: 70px;
    width: auto;
    display: block;
    margin-bottom: 20px;
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.9));
}

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

.footer-col.brand p {
    margin-top: 15px;
    opacity: 0.8;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--trust);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
    opacity: 0.8;
    transition: opacity 0.3s;
    cursor: pointer;
}

.footer-col li:hover {
    opacity: 1;
    color: var(--trust);
}

.footer-col p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 1;
    color: var(--trust);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsivo (Celulares) */
@media (max-width: 900px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .cards-wrapper {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .info-cards {
        margin-top: -40px;
    }
    
    .specialties-grid {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery {
        flex-direction: column;
        height: auto;
    }
    
    .gallery-item {
        padding: 35px 20px;
        min-height: 180px;
    }
    
    .gallery-item:hover {
        flex: 1;
    }
}

/* Estilos para links de estudios (Pacientes) */
.study-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.study-link:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 70, 140, 0.15);
    border-color: var(--primary);
}

/* WhatsApp Flotante */
.floating-whatsapp {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: bounce-whatsapp 2s infinite;
}

@keyframes bounce-whatsapp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: white;
    animation: none;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 25px;
        right: 25px;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Domicilios Flotante */
.floating-domicilio {
    position: fixed;
    bottom: 40px;
    left: 40px;
    background-color: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(88, 70, 140, 0.4);
    text-decoration: none;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: bounce-domicilio 2.5s infinite;
}

@keyframes bounce-domicilio {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.floating-domicilio:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(88, 70, 140, 0.6);
    color: white;
    animation: none;
}

@media (max-width: 768px) {
    .floating-domicilio {
        bottom: 25px;
        left: 25px;
        padding: 12px 20px;
        font-size: 1rem;
    }
}
