﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #09152e;
    --secondary: #d4a017;
    --dark: #040810;
    --light: #f5f5f0;
    --gray: #2d3748;
    --white: #ffffff;
    --gold-light: #e8c84a;
    --navy-light: #0f2e5c;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(9, 21, 46, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.logo-img {
    height: 90px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    display: block;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary), var(--gold-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--white);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    background-color: var(--primary);
    background-image: linear-gradient(90deg, rgba(9, 21, 46, 0.98) 0%, rgba(9, 21, 46, 0.9) 35%, rgba(9, 21, 46, 0.1) 60%, transparent 75%),
                      url('/IMAGENES/LOGO A LA DERECHA.png');
    background-size: auto 90%;
    background-position: 70% center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 0 2rem 8%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    color: var(--white);
    position: relative;
    z-index: 1;
    margin-right: auto;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), var(--gold-light));
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--gold-light));
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Stats Bar */
.stats-bar {
    background: var(--white);
    padding: 3rem 5%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: -3rem 5% 0;
    border-radius: 16px;
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    display: block;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Services Section */
.services {
    padding: 6rem 5%;
    background: var(--light);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(9, 21, 46, 0.15);
    border-color: var(--secondary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary), var(--gold-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--primary);
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 6rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    position: relative;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--secondary), var(--gold-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 6rem;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    text-align: left;
}

.features-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Team Section */
.team {
    padding: 6rem 5%;
    background: var(--light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.team-avatar {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    overflow: hidden;
}

.team-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    color: var(--primary);
    font-size: 1.25rem;
}

.team-info p.position {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.team-info small.specialty {
    display: block;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.team-info p.bio {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Contact Section */
.contact {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.whatsapp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, #f0f7f3 100%);
    padding: 4rem 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(9, 21, 46, 0.12);
    border: 2px solid rgba(37, 211, 102, 0.15);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.whatsapp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(9, 21, 46, 0.18);
    border-color: rgba(37, 211, 102, 0.35);
}

.whatsapp-icon {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 2rem;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-card h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.whatsapp-card p {
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 420px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.whatsapp-number {
    margin-top: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

.contact-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(9, 21, 46, 0.12);
    border: 2px solid rgba(9, 21, 46, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form-container h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
    color: var(--dark);
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 160, 23, 0.4);
}

/* Cases Section */
.cases {
    padding: 6rem 5%;
    background: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.case-card {
    background: var(--light);
    border-radius: 16px;
    padding: 2.5rem;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.case-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary), var(--gold-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.case-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.case-area {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.case-result {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.case-result strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.case-result span {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-social {
    display: flex;
    gap: 0.75rem;
    margin-left: 2rem;
}

.nav-social a {
    color: var(--white);
    font-size: 1.25rem;
    transition: color 0.3s;
}

.nav-social a:hover {
    color: var(--secondary);
}

/* Location Section */
.location {
    padding: 6rem 5%;
    background: var(--light);
}

.location-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: stretch;
}

.location-info {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-info h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.location-detail {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.location-detail span {
    font-size: 1.25rem;
}

.location-detail div strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.location-detail div p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

@media (max-width: 768px) {
    .location-container {
        grid-template-columns: 1fr;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 21, 46, 0.95);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon i {
    font-size: 3rem;
    color: var(--primary);
}

.modal-content h2 {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-time {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 2rem !important;
}

.modal-content .btn {
    margin-top: 1rem;
    padding: 0.9rem 2.5rem;
    font-size: 1.05rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 8rem 5% 4rem;
        background-image: none;
    }

    .hero-content {
        margin-right: 0;
        max-width: 700px;
        order: 2;
    }

    .hero::before {
        content: '';
        width: 100%;
        max-width: 400px;
        height: 300px;
        background-image: url('/IMAGENES/Header.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        order: 1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 1024px) {
    .about {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 60px;
        max-width: 180px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 1rem 5%;
        gap: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
        cursor: pointer;
    }

    .mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: 70vh;
        padding-top: 7rem;
    }

    .hero::before {
        max-width: 300px;
        height: 250px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        margin: -2rem 5% 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
