/* Clínica Hispana Tu Vida - Website Styles */

/* CSS Variables - Brand Colors */
:root {
    --primary-color: #1e3a5f;      /* Azul marino oscuro */
    --secondary-color: #2c5282;     /* Azul marino medio */
    --accent-color: #fbbf24;        /* Amarillo dorado */
    --accent-dark: #f59e0b;         /* Amarillo oscuro */
    --white: #ffffff;
    --bg-light: #f8fafc;
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

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

/* Remove unwanted numbers */
.navbar-nav .nav-item::before,
.navbar-nav .nav-item::after {
    content: '' !important;
    display: none !important;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header Styles */
.navbar {
    background: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

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

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

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

/* Logo in Navbar */
.navbar .profile-img {
    width: 100px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--white);
    padding: 5px;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    background-image: url('../image/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.85), rgba(44, 82, 130, 0.75));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 960px;
    padding: 2rem;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin: 0 auto 3rem auto;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
    display: block;
    width: 100%;
    max-width: 95vw;
    white-space: normal;
    word-spacing: 0;
}

.hero-section p.lead {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--white);
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border: 2px solid var(--white);
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    animation: fadeInUp 1.2s ease-out;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--white), var(--bg-light));
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.btn-white-custom {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-white-custom:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Section Styles */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

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

/* Staff Cards */
.staff-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    border: 2px solid transparent;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.2);
    border-color: var(--accent-color);
}

.staff-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    border: 4px solid var(--accent-color);
}

.staff-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.staff-card .specialty {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Services Cards */
.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.2);
    border-color: var(--accent-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

/* About Section */
.about-section {
    background: var(--bg-light);
}

/* Insurance section styles */
.insurance-section {
    background: linear-gradient(135deg, rgba(30,58,95,0.03), rgba(44,82,130,0.02));
}

.insurance-section h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.insurance-section p {
    color: var(--text-dark);
    margin-bottom: 0;
}

.insurance-section .btn-primary-custom {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
}

@media (max-width: 767px) {
    .insurance-section .text-lg-end {
        text-align: left !important;
        margin-top: 1rem;
    }
}

/* Logos layout - responsive grid that wraps into rows (max 5 per row on desktop) */
.insurance-logos {
    overflow: visible;
    position: relative;
    padding: 1rem 0;
}

.insurance-logos .logos-track {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(5, 1fr); /* 5 per row on large screens */
    align-items: center;
    justify-items: center;
}

.insurance-logos img {
    display: block;
    width: auto;
    max-width: 320px; /* limit width so wide logos don't overflow on narrow containers */
    height: auto;
    max-height: 300px; /* desktop maximum */
    object-fit: contain;
    border-radius: 8px;
    padding: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(3,19,43,0.06);
}

/* Responsive column counts and image sizing */
@media (max-width: 1200px) {
    .insurance-logos .logos-track { grid-template-columns: repeat(4, 1fr); }
    .insurance-logos img { max-width: 280px; max-height: 240px; }
}

@media (max-width: 991px) {
    .insurance-logos .logos-track { grid-template-columns: repeat(3, 1fr); }
    .insurance-logos img { max-width: 220px; max-height: 180px; }
}

@media (max-width: 768px) {
    .insurance-logos .logos-track { grid-template-columns: repeat(2, 1fr); }
    .insurance-logos img { max-width: 180px; max-height: 140px; }
}

/* Mobile: one per row, centered, comfortable size */
@media (max-width: 480px) {
    /* Mobile phones: 2 logos per row for better balance */
    .insurance-logos .logos-track { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .insurance-logos img {
        max-width: 92%;
        width: auto;
        max-height: 140px;
        padding: 6px;
    }
}

@media (max-width: 360px) {
    /* Very small devices: fall back to single column to avoid cramped layout */
    .insurance-logos .logos-track { grid-template-columns: 1fr; }
    .insurance-logos img { max-width: 92%; max-height: 120px; }
}



/* Removed old single-size fallback for logos to avoid conflicts with responsive rules */

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1rem;
}

/* Improve readability: limit column width, add spacing and emphasize headings */
.about-section .about-text {
    max-width: 740px;
}

.about-text .lead {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.about-text h5 {
    color: var(--primary-color);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.about-text p + p {
    margin-top: 0.6rem;
}

.about-text strong {
    color: var(--primary-color);
}

/* Add subtle spacing between the image and text on large screens */
@media (min-width: 992px) {
    .about-section .about-text {
        padding-right: 1rem;
    }
}

/* Ensure blocks below floated image span full width */
.about-section .about-below {
    clear: both;
    width: 100%;
    margin-top: 1.5rem;
}

.about-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--accent-color);
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    opacity: 0.4;
    border-radius: 15px;
    z-index: 1;
    pointer-events: none;
}

.about-image img {
    border-radius: 15px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Why Us Section */
.why-us-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.why-us-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(10px);
}

.why-us-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.why-us-content h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.why-us-content p {
    color: var(--text-light);
    margin: 0;
}

/* Promotional Section */
.promo-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(251,191,36,0.1)"/></svg>');
    opacity: 0.5;
}

.promo-section .container {
    position: relative;
    z-index: 1;
}

.promo-section h2 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.promo-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--text-light);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.25);
    outline: none;
}

/* Contact Info */
.contact-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    height: 100%;
}

.contact-info h4 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--accent-color);
}

/* Social Media */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
    justify-content: flex-start;
}

.social-link {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.18s ease;
    border: 2px solid rgba(255,255,255,0.06);
    padding: 0;
    box-sizing: border-box;
}

.social-link i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    width: 100%;
    height: 100%;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(30,58,95,0.24);
}

/* utility: highlight a specific social icon (add class "active" to the link in HTML if needed) */
.social-link.active {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Appointlet Widget Styling */
.appointlet-container {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    border: 2px solid var(--accent-color);
}

.appointlet-inline {
    min-height: 600px;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section p.lead {
        font-size: 1.25rem;
    }
    
    .btn-primary-custom {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .about-image {
        height: 300px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }

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

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p.lead {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .about-image {
        height: 250px;
    }
}

/* Scroll Animations */
.scroll-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.scroll-animation.active {
    opacity: 1;
    transform: translateY(0);
}