:root {
    --primary-color: #000000;
    --secondary-color: #d4af37; /* Elegant Gold */
    --accent-color: #4a4a4a;
    --bg-dark: #121212;
    --bg-light: #f8fafc;
    --text-main: #212121;
    --text-light: #f8fafc;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

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

.mt-2 {
    margin-top: 2rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    border-radius: 4px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--text-light);
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navbar nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.navbar nav ul li a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.1) 100%), url('src/images/portada.png') center/cover no-repeat;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-light), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    color: var(--text-light);
    text-align: left;
    z-index: 2;
    animation: fadeIn 1.2s ease-out forwards;
}

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

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.tagline {
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.headline-text {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(15, 23, 42, 0.3);
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    backdrop-filter: blur(5px);
    border-radius: 0 8px 8px 0;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--secondary-color);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #fceabb;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-dark {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.section-light {
    background-color: var(--bg-light);
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--secondary-color);
}

.section-light h2 {
    color: var(--primary-color);
}

/* Mission & Vision */
.mission-vision {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    border-top: 3px solid var(--secondary-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.card h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.service-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.service-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-top: 0.2rem;
}

.service-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-family: var(--font-heading);
}

.service-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.section-divider {
    text-align: center;
    margin: 4rem 0 2rem;
}

.section-divider h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-divider .subtitle {
    color: #64748b;
    font-size: 1.1rem;
}

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

.offer-item {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 1.2rem;
    transition: var(--transition);
}

.offer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.offer-icon-wrapper {
    background-color: rgba(212, 175, 55, 0.15); /* Soft gold */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.offer-icon-wrapper i {
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.offer-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
}

.offer-desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    font-family: var(--font-body);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: var(--bg-light);
    color: var(--text-main);
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.team-member:hover {
    border-color: var(--secondary-color);
}

.team-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.team-member h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.role {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bio {
    font-size: 0.95rem;
    color: #cbd5e1;
}

/* Alianzas */
.alianzas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-top: 2rem;
}

.alianza-item {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.alianza-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border: 1px solid var(--secondary-color);
}

.alianza-logo {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-btn:hover {
    background-color: var(--secondary-color);
    color: var(--bg-dark);
}

.copyright {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Modals & Buttons */
.btn-see-more {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 0.5rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
    align-self: flex-start;
}

.btn-see-more:hover {
    background-color: var(--secondary-color);
    color: var(--bg-dark);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-light);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease-out;
}

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

.close-modal {
    color: #94a3b8;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-body {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.modal-img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 4px solid white;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.modal-text {
    flex: 1;
    color: var(--text-main);
}

.modal-text h2 {
    text-align: left;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 2rem;
}

.modal-role {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-text p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
}

.bio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.bio-tag {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.bio-section {
    margin-bottom: 1.5rem;
}

.bio-section h4 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bio-section h4 i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.bio-list {
    list-style: none;
    padding-left: 0;
}

.bio-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.bio-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary-color);
    font-size: 0.7rem;
}

/* Responsive Design */
/* Tablet & iPad (max-width: 992px) */
@media (max-width: 992px) {
    .hero {
        background-position: center right 20%;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .tagline {
        font-size: 1.3rem;
    }
    .headline-text {
        font-size: 1rem;
    }
    .modal-content {
        width: 95%;
        padding: 2rem;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 5%;
    }
    .menu-toggle {
        display: block;
    }
    .navbar nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        padding: 1.5rem 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        gap: 0;
    }
    .navbar nav ul.active {
        display: flex;
        animation: fadeInDown 0.3s ease-out forwards;
    }
    
    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .navbar nav ul li {
        width: 100%;
    }
    
    .navbar nav ul li a {
        padding: 1rem;
        justify-content: center;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }
    
    .navbar nav ul li:last-child a {
        border-bottom: none;
    }
    
    .hero {
        justify-content: flex-start;
        text-align: center;
        background: url('src/images/portada_movil.jpg') top center / 100% auto no-repeat;
        background-color: var(--bg-dark);
        min-height: auto;
        padding-top: 60vw; /* Empuja el texto justo por debajo de la imagen (aspect ratio 16:9) */
        padding-bottom: 2rem;
    }
    .hero-content {
        text-align: center;
        width: 100%;
        margin: 0;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .hero h1 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 0;
        margin-top: 1rem;
    }
    .tagline {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    .headline-text {
        font-size: 0.95rem;
        border-left: none;
        border-top: 2px solid var(--secondary-color);
        border-radius: 0;
        background: transparent;
        padding: 1rem 0 0 0;
        width: 90%;
    }
    section {
        padding: 2.5rem 0;
    }
    h2 {
        font-size: 1.6rem;
    }
    .mission-vision {
        flex-direction: column;
    }
    .modal-body {
        flex-direction: column;
        gap: 1.5rem;
    }
    .modal-img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-position: top;
    }
    .modal-text h2 {
        font-size: 1.3rem;
        text-align: center;
    }
    .modal-role {
        text-align: center;
        font-size: 0.85rem;
    }
    .bio-tags {
        justify-content: center;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .tagline {
        font-size: 1rem;
    }
    .services-grid, .team-grid, .offer-grid, .alianzas-grid {
        grid-template-columns: 1fr;
    }
}
