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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Navbar Moderna y Profesional */
.navbar {
    background: rgba(30, 60, 114, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo::before {
    content: "💼";
    font-size: 1.8rem;
}

/* Menú Hamburguesa Moderno */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 3px;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0;
    position: relative;
}

.nav-menu a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: block;
    position: relative;
    white-space: nowrap;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.nav-menu a:hover::before {
    width: 80%;
}

/* Separador visual para menú largo */
.nav-menu li:nth-child(6)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    display: none;
}

@media (min-width: 1200px) {
    .nav-menu li:nth-child(6)::after {
        display: block;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(30, 60, 114, 0.85), rgba(42, 82, 152, 0.85)), url('../img/6.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 8rem 2rem;
    text-align: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

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

/* Sections */
.section {
    margin-bottom: 4rem;
}

.section h2 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: justify;
}

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

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card h3 {
    color: #2a5298;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Values Section */
.values {
    background: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

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

.value-item {
    text-align: center;
    padding: 1.5rem;
}

.value-item h3 {
    color: #2a5298;
    margin-bottom: 1rem;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item-content {
    padding: 1.5rem;
}

/* Footer */
.footer {
    background: #1e3c72;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

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

/* Page Container for legal pages */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: white;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.page-container h1 {
    color: #1e3c72;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.page-container h2 {
    color: #2a5298;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.page-container p {
    margin-bottom: 1rem;
    text-align: justify;
}

.page-container ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.page-container a {
    color: #2a5298;
    text-decoration: none;
}

.page-container a:hover {
    text-decoration: underline;
}

/* Testimonios */
.testimonials {
    background: #f8f9fa;
    padding: 4rem 2rem;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: #2a5298;
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: bold;
    color: #2a5298;
}

.testimonial-company {
    color: #666;
    font-size: 0.9rem;
}

/* Cronología */
.timeline {
    position: relative;
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #2a5298;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #2a5298;
    border-radius: 50%;
    top: 2rem;
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Posts/Blog */
.posts-section {
    background: #f8f9fa;
    padding: 4rem 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 1.5rem;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #2a5298;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1e3c72;
}

/* Post Largo/Featured */
.featured-post {
    background: white;
    padding: 4rem 2rem;
}

.featured-post-container {
    max-width: 900px;
    margin: 0 auto;
}

.featured-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.featured-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.95rem;
}

.featured-post-title {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.featured-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.featured-post-content h3 {
    color: #2a5298;
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.featured-post-content h4 {
    color: #2a5298;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.featured-post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.featured-post-content ul,
.featured-post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.featured-post-content li {
    margin-bottom: 0.8rem;
}

.featured-post-content strong {
    color: #1e3c72;
}

.featured-post-content blockquote {
    border-left: 4px solid #2a5298;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

/* Sección Nosotros Expandida */
.team-section {
    background: white;
    padding: 4rem 2rem;
}

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

.team-member {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.team-member h4 {
    color: #2a5298;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar {
        background: rgba(30, 60, 114, 0.98);
    }
    
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo::before {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(30, 60, 114, 0.98) 0%, rgba(42, 82, 152, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 4rem;
        padding-left: 0;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    
    .nav-menu a {
        padding: 1.2rem 2rem;
        width: 100%;
        display: block;
        font-size: 1.05rem;
        border-radius: 0;
    }
    
    .nav-menu a::before {
        display: none;
    }
    
    .nav-menu a:hover {
        background: rgba(255,255,255,0.15);
        transform: none;
        padding-left: 2.5rem;
        color: #fff;
    }
    
    /* Overlay para cerrar menú */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 3rem 1rem;
        min-height: 60vh;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    /* Container Mobile */
    .container {
        padding: 2rem 1rem;
    }
    
    .section {
        margin-bottom: 3rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .section p {
        font-size: 1rem;
    }
    
    /* Cards Mobile */
    .cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card img {
        height: 180px;
    }
    
    /* Values Grid Mobile */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .values {
        padding: 2rem 1rem;
    }
    
    /* Timeline Mobile */
    .timeline {
        padding: 2rem 1rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 1rem !important;
        margin-bottom: 2rem;
    }
    
    .timeline-item::before {
        left: 10px !important;
    }
    
    /* Testimonials Mobile */
    .testimonials {
        padding: 2rem 1rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Posts Mobile */
    .posts-section {
        padding: 2rem 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Featured Post Mobile */
    .featured-post {
        padding: 2rem 1rem;
    }
    
    .featured-post-container {
        padding: 0;
    }
    
    .featured-post-image {
        max-height: 250px;
        margin-bottom: 1.5rem;
    }
    
    .featured-post-title {
        font-size: 1.8rem;
    }
    
    .featured-post-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .featured-post-content {
        font-size: 1rem;
    }
    
    .featured-post-content h3 {
        font-size: 1.4rem;
    }
    
    .featured-post-content h4 {
        font-size: 1.2rem;
    }
    
    /* Team Grid Mobile */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
    
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
