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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding-top: 80px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

main {
    width: 100%;
    overflow-x: hidden;
}

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

/* Header & Navigation */
.nav {
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav__container {
    width: min(90%, 1200px);
    margin: 0 auto;
    align-items: center;
    display: flex;
    align-content: center;
    justify-content: space-between;
    height: 80px;
    --icon-toggle-menu: url("./assets/menu.svg");
    --transform-menu-show: translate(-100%);
}

.nav__container:has(.nav__input:checked) {
    --icon-toggle-menu: url("./assets/close.svg");
    --transform-menu-show: translate(0);
}

.nav__figure {
    z-index: 10;
}

.nav__figure img {
    height: 50px;
}

.nav__toggle {
    width: 40px;
    height: 40px;
    background-image: var(--icon-toggle-menu);
    filter: invert(1); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: background-image .5s;
    cursor: pointer;
    z-index: 10;
    border: none;
    background-color: transparent;
}

.nav__list {
    transform: var(--transform-menu-show);
    list-style: none;
    background-color: black;
    position: fixed;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 2.5rem;
    text-align: center;
    transition: .5s transform;
    margin: 0;
    padding: 0;
    z-index: 9;
}

.nav__input {
    height: 40px;
    width: 40px;
    display: none;
}

.nav__link {
    color: aliceblue;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav__link:hover {
    color: #1a4d7a;
}

/* Desktop Navigation */
@media (width > 756px) {
    .nav__toggle {
        display: none;
    }
    
    .nav__list {
        position: static;
        transform: translate(0);
        background-color: transparent;
        display: flex;
        gap: 2rem;
        align-items: center;
        justify-content: flex-end;
    }
    
    .nav__link {
        color: #4A90E2;
        font-size: 1rem;
        transition: color 0.3s;
    }
    
    .nav__link:hover {
        color: #357ABD;
    }
}

/* Hero Section */
.hero {
    background-color: #1a1a1a;
    background-image: url('assets/perfil.jpg');
    background-size: cover;
    background-position: right 38%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: #fff;
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(26, 26, 26, 0.7) 0%, rgba(26, 26, 26, 0.2) 40%, transparent 55%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
    font-family: 'Times New Roman', Times, serif;
}

.name-line {
    display: block;
}

.name-white {
    color: #ffffff;
}

.name-blue {
    color: #4A90E2;
    font-size: 4.5rem;
}

.associates {
    font-size: 1.8rem;
    font-weight: 400;
    display: block;
    margin-top: 0.5rem;
    color: #ffffff;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    font-family: 'Times New Roman', Times, serif;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #999;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
    max-width: 500px;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    width: auto;
    max-width: 100%;
}

.btn-primary {
    background-color: #4A90E2;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background-color: #357ABD;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background-color: #4A90E2;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-secondary:hover {
    background-color: #357ABD;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Ajustar la posición del background para mostrar cabeza completa */
@media (min-width: 769px) {
    .hero {
        background-size: cover;
        background-position: right 20% top 0%;
    }
    
    .hero::before {
        background: linear-gradient(to right, rgba(26, 26, 26, 0.6) 0%, rgba(26, 26, 26, 0.15) 40%, transparent 55%);
    }
}

/* Asegurar que la imagen se vea bien en diferentes tamaños */
@media (max-width: 768px) {
    .hero {
        background-size: cover;
        background-position: center center;
    }
    
    .hero::before {
        background: linear-gradient(to right, rgba(26, 26, 26, 0.75) 0%, rgba(26, 26, 26, 0.4) 60%, rgba(26, 26, 26, 0.1) 80%, transparent 100%);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
    }
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #666;
    text-align: center;
}

.placeholder-content svg {
    width: 80px;
    height: 80px;
    stroke: #4A90E2;
    opacity: 0.5;
}

.placeholder-content p {
    font-size: 0.9rem;
    color: #666;
}

/* Team Image Placeholders */
.team-image-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.team-image-placeholder:hover {
    transform: scale(1.05);
}

.team-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-image-placeholder .placeholder-content {
    gap: 0.5rem;
}

.team-image-placeholder .placeholder-content svg {
    width: 60px;
    height: 60px;
}

.team-image-placeholder .placeholder-content p {
    font-size: 0.8rem;
}

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

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

/* Section Styles */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #4A90E2;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}


/* About Section */
.about-section {
    background-color: #ffffff;
    padding: 80px 20px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-buttons {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Team Section */
.team-section {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 20px;
}

.team-section .section-title {
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
}

.team-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.team-member-large {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.team-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 500px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(74, 144, 226, 0.3);
}

.team-photo {
    width: 100%;
    max-width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(74, 144, 226, 0.3);
}

.team-text {
    color: #fff;
}

.team-text h3 {
    color: #4A90E2;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.team-text h4 {
    color: #999;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.team-text p {
    color: #ddd;
    line-height: 1.8;
    font-size: 1.1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.team-member h3 {
    color: #4A90E2;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-member h4 {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-member p {
    color: #555;
    line-height: 1.6;
}

/* Motivation Section */
.motivation-section {
    background-color: #f8f9fa;
}

.motivation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.motivation-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

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

.motivation-card h3 {
    color: #4A90E2;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.motivation-card p {
    color: #555;
    line-height: 1.8;
}

.motivation-card ul {
    list-style: none;
    color: #555;
}

.motivation-card ul li {
    margin-bottom: 1rem;
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
}

.motivation-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4A90E2;
    font-weight: bold;
}


/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
}

.stats-section .section-title {
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonials-section {
    background-color: #f8f9fa;
}

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

.testimonial-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #4A90E2;
}

.testimonial-card h4 {
    color: #4A90E2;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-author {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-weight: 600;
    color: #4A90E2;
}

.testimonial-author span {
    display: block;
    font-weight: 400;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}


/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 3rem 20px 1rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

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

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

    .name-blue {
        font-size: 2.5rem;
    }

    .associates {
        font-size: 1.3rem;
    }

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

    .section-title {
        font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    }

    .hero-buttons,
    .about-buttons {
        flex-direction: column;

    /* Responsive Typography */
    .hero-title {
        font-size: clamp(2rem, 8vw, 5rem);
    }
    .name-blue {
        font-size: clamp(1.8rem, 7vw, 4.5rem);
    }
    .associates {
        font-size: clamp(1rem, 4.5vw, 1.8rem);
    }
    .hero-subtitle {
        font-size: clamp(1rem, 3.8vw, 1.3rem);
    }
    .btn {
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    }
    p {
        text-align: left;
        overflow-wrap: anywhere;
    }
    @media (max-width: 768px) {
        .hero-container {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
        .hero-content { text-align: left; }
    }
        max-width: 100%;
    }

    .btn {
        width: auto;
        max-width: 100%;
    }

    .team-grid,
    .motivation-grid,
    .services-grid,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .team-member-large {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .team-image-placeholder {
        max-width: 100%;
        height: 400px;
    }

}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }

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

    section {
        padding: 50px 20px;
    }

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