/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #04328d;
    --secondary-color: #ffffff;
    --accent-color: #0056b3;
    --text-dark: #333333;
    --text-light: #666666;
    --gradient: linear-gradient(135deg, #04328d 0%, #0056b3 100%);
    --gradient-alt: linear-gradient(45deg, #04328d, #0066cc, #0056b3);
    --shadow: 0 10px 30px rgba(4, 50, 141, 0.1);
    --shadow-hover: 0 15px 40px rgba(4, 50, 141, 0.2);
    --shadow-large: 0 25px 50px rgba(4, 50, 141, 0.15);
    --border-radius: 12px;
    --border-radius-large: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;

    /* Derivados de colores corporativos */
    --primary-light: rgba(4, 50, 141, 0.1);
    --primary-medium: rgba(4, 50, 141, 0.2);
    --accent-light: rgba(0, 86, 179, 0.1);
    --accent-medium: rgba(0, 86, 179, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: #fafbfc;
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(4, 50, 141, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container img {
    width: 300px;
    height: fit-content;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(4, 50, 141, 0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(4, 50, 141, 0.1);
}

/* Main Content */
main {
    margin-top: 80px;
    overflow: hidden;
}

/* Hero Section - Diseño de conexiones */
.hero {
    background: url('../img/fondo-consultoria.webp');
    background-position: right center;
    background-size: cover;
    color: var(--secondary-color);
    padding: 7rem 2rem;
    position: relative;
    overflow: hidden;
    height: 700px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a1a;
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.5;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.hero-feature-icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connection-web {
    position: relative;
    width: 300px;
    height: 300px;
}

.central-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 3s infinite;
}

.satellite-node {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: orbit 8s linear infinite;
}

.satellite-node:nth-child(2) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.satellite-node:nth-child(3) {
    top: 25%;
    right: 0;
    animation-delay: 2s;
}

.satellite-node:nth-child(4) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

.satellite-node:nth-child(5) {
    top: 25%;
    left: 0;
    animation-delay: 6s;
}

/* About Section - Diseño hexagonal */
.about-section {
    padding: 8rem 2rem;
    background: var(--secondary-color);
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.hexagon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.hexagon-card {
    background: var(--secondary-color);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    border: 3px solid transparent;
    background-clip: padding-box;
}

.hexagon-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    background: var(--gradient);
    border-radius: var(--border-radius-large);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.hexagon-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.hexagon-card:hover::before {
    opacity: 1;
}

.hexagon-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    position: relative;
}

.hexagon-icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hexagon-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.hexagon-card p {
    color: var(--text-light);
    line-height: 1.7;
    text-align: center;
}

/* Services Section - Diseño de flujo */
.services-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.services-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.service-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.service-step:nth-child(even) {
    direction: rtl;
}

.service-step:nth-child(even) * {
    direction: ltr;
}

.service-content {
    background: var(--secondary-color);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.service-content:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.service-number {
    position: absolute;
    top: -20px;
    left: 3rem;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.service-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.service-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
}

.service-features li::before {
    content: '🌱';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.service-visual {
    background: var(--gradient);
    border-radius: var(--border-radius-large);
    padding: 3rem;
    color: var(--secondary-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 60px 60px;
    opacity: 0.5;
}

.visual-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
    z-index: 2;
}

.visual-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.visual-description {
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Experience Section */
.experience-section {
    padding: 8rem 2rem;
    background: var(--gradient-alt);
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.experience-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,50 Q25,30 50,50 T100,50 V100 H0 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px 100px;
    animation: wave 6s linear infinite;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.experience-content h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.experience-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
}

.experience-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.experience-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-illustration {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.community-illustration::before {
    content: '🤝';
    font-size: 8rem;
    position: relative;
    z-index: 2;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 4s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    top: 10%;
    right: 10%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.floating-element:nth-child(3) {
    bottom: 10%;
    left: 10%;
    width: 70px;
    height: 70px;
    animation-delay: 1s;
}

.floating-element:nth-child(4) {
    top: 20%;
    left: 20%;
    width: 50px;
    height: 50px;
    animation-delay: 2s;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: var(--secondary-color);
    padding: 3rem 2rem 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: 1.5rem;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.8;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section>ul {
    font-size: 0.9rem;
    padding: 0px 15px;
    list-style-position: inside;
}

.footer-section>ul>li {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer img {
    justify-self: center;
    align-self: center;
    width: 250px;
    height: fit-content;
    border-radius: 12px;
}

/* 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);
    }
}

@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 50% 100%;
    }

    75% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(120px) rotate(-360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 200px;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
/* Tablet */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-features {
        grid-template-columns: 2;
        max-width: 600px;
        margin: 2.5rem auto;
    }

    .service-step {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .connection-web {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-visual {
        display: none;
    }

    .cta-content h2 {
        font-size: 2.4rem;
    }
}

/* Tablet Pequeña */
@media (max-width: 900px) {
    .hero {
        height: auto;
        padding: 5rem 2rem;
    }

    .about-section,
    .services-section,
    .experience-section,
    .cta-section {
        padding: 6rem 2rem;
    }

    .section-title {
        font-size: 2.6rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .nav-container img {
        width: 300px;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
        gap: 1rem;
    }

    .nav-menu.active {
        transform: translateY(0px);
    }

    .menu-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text .subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hexagon-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hexagon-card {
        padding: 2rem 1.5rem;
    }

    .experience-stats {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .satellite-node {
        display: none;
    }

    .connection-web {
        width: 200px;
        height: 200px;
    }

    .community-illustration {
        width: 300px;
        height: 300px;
    }

    .community-illustration::before {
        font-size: 5rem;
    }

    .btn {
        padding: 1rem 1.8rem;
        font-size: 1rem;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }

    .cta-content>div {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Móvil Pequeño */
@media (max-width: 480px) {
    .nav-container img {
        width: 75%;
        height: auto;
    }
    
    .menu-toggle {
        width: 15%;
    }
    
    
    .hero-text h1 {
        font-size: 2rem;
    }

    .service-content,
    .hexagon-card {
        padding: 1.5rem;
    }

    .service-visual {
        padding: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-feature-icon {
        font-size: 1.8rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .hero-feature h4 {
        font-size: 1.1rem;
    }

    .hero-feature p {
        font-size: 0.9rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section ul {
        padding: 0;
        list-style: none;
    }
}