/* ============== VARIABLES Y RESET ============== */

:root {
    --primary-color: #0066cc;
    --secondary-color: #004499;
    --accent-color: #ff6b35;
    --light-bg: #f8f9fa;
    --dark-text: #1a1a1a;
    --light-text: #666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ============== CONTAINER ============== */

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

/* ============== NAVBAR ============== */

.navbar {
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 0.5rem;
    z-index: 1200;
}

.nav-toggle .hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark-text);
    position: relative;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--dark-text);
}

.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after { top: 7px; }

.logo-section {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    margin-right: 4rem;
}

.logo {
    width: 150px;
    height: auto;
    margin: 0;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand h1 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.brand p {
    font-size: 0.85rem;
    color: var(--light-text);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

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

.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: linear-gradient(135deg, rgba(0, 102, 204, 0.8) 0%, rgba(0, 68, 153, 0.8) 100%), url('InicioBackground.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeInUp 0.8s ease;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    background-color: #ff5722;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* ============== ABOUT SECTION ============== */

.about {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa, white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

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

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

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

.about-text h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.credentials {
    list-style: none;
    margin: 1.5rem 0;
}

.credentials li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--light-text);
}

.credentials li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-closing {
    background-color: rgba(0, 102, 204, 0.05);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    font-style: italic;
}

/* ============== SECTION TITLES ============== */

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ============== SERVICES SECTION ============== */

.services {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #f8f9fa;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: white;
}

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

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

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

/* ============== GALLERY SECTION ============== */

.gallery {
    padding: 80px 0;
    background: linear-gradient(to bottom, white, #f8f9fa);
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 102, 204, 0.8);
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.carousel-indicators div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators div.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* ============== TESTIMONIALS SECTION ============== */

.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stars {
    color: #ffc107;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--light-text);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============== CONTACT SECTION ============== */

.contact {
    padding: 80px 0;
    background: white;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.mutuas-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}

.mutuas-logos {
    display: inline-block;
    width: 100%;
    max-width: 1024px;
}

.mutuas-logos img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.mutuas-note {
    margin-top: 0.75rem;
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.contact-card p {
    color: var(--light-text);
    margin: 0.5rem 0;
    line-height: 1.8;
}

.contact-card--location,
.contact-card--schedule {
    text-align: center;
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: none;
}

.contact-card--location:hover,
.contact-card--schedule:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.contact-details {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0.2rem auto 0.8rem;
    box-shadow: none;
    text-align: left;
    max-width: 260px;
}

.contact-line {
    margin: 0.5rem 0;
    color: var(--dark-text);
    font-weight: 500;
}

.contact-card--location .contact-line {
    font-weight: 600;
}

.contact-card--schedule .contact-line {
    font-weight: 500;
}

@media (max-width: 768px) {
    .contact-card--location,
    .contact-card--schedule {
        text-align: center;
    }

    .contact-details {
        text-align: center;
    }
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--accent-color);
}

.info-text {
    font-size: 0.9rem;
    color: #999;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

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

.footer {
    background: var(--dark-text);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #bbb;
    margin-bottom: 0.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

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

@media (max-width: 768px) {
    .nav-menu {
        gap: 1.5rem;
        font-size: 0.95rem;
    }

    .hero {
        height: 400px;
        margin-top: 70px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .carousel {
        height: 300px;
    }

    .carousel-btn {
        padding: 10px 14px;
        font-size: 1.2rem;
    }

    .contact {
        padding: 3rem 0;
    }

    .map-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: auto;
        padding: 0.8rem 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        gap: 0.5rem;
    }

    .logo-section {
        display: flex;
        align-items: center;
    }

    .logo {
        width: 64px;
    }

    .brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        pointer-events: none;
    }

    .brand h1 {
        font-size: 1.15rem;
        margin: 0;
    }

    .brand p {
        font-size: 0.75rem;
        margin: 0;
    }

    .nav-toggle {
        display: block;
        position: relative;
        right: 0;
        top: auto;
        transform: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 50%;
        transform: translateX(-50%);
        background: #fff;
        box-shadow: var(--shadow);
        border-radius: 8px;
        padding: 0.5rem 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
        width: min(calc(100% - 2rem), 320px);
        z-index: 1200;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        padding: 0.6rem 0.75rem;
        display: block;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }

    .hero {
        height: 250px;
        margin-top: 0;
    }

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

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

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

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

    .about-content h2 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .carousel {
        height: 250px;
    }

    .carousel-btn {
        padding: 8px 12px;
        font-size: 1rem;
    }

    .map-container {
        height: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ============== ANIMATIONS ============== */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.service-card {
    animation: fadeIn 0.6s ease-out;
}
