/* extracted from index.html inline <style> to keep HTML lean */

:root {
    --color-primary: #000000;
    --color-accent: #00BFA5;
    --color-light-gray: #F3F3F3;
    --color-white: #FFFFFF;
    --color-text: #333333;
    --color-text-light: #555555;
    --font-main: 'Noto Sans', sans-serif;
    --font-display: 'Inter', sans-serif;
    --spacing-unit: 1rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
    padding-bottom: 90px; /* Space for footer (reducido) */
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--color-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #00897B;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 191, 165, 0.3);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-calendly {
    background-color: #0069FF;
    color: white;
}

/* Navbar Styles */
.navbar {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo span {
    color: var(--color-accent);
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid #000000;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

@media (max-width: 480px) {
    .nav-logo {
        flex-direction: column;
        gap: 0;
        line-height: 1.2;
    }
    .nav-logo span {
        font-size: 0.9rem;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

/* Dropdown Redes Sociales */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a::after {
    content: "▾";
    margin-left: 0.35rem;
    font-size: 0.7rem;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.35rem;
    background: #FFFFFF;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    border-radius: 8px;
    list-style: none;
    padding: 0.4rem 0;
    min-width: 190px;
    display: none;
    z-index: 1001;
}

.nav-dropdown .dropdown-menu li a {
    display: block;
    width: 100%;
    border-radius: 0;
    background: transparent;
    color: #000000;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    box-shadow: none;
}

.nav-dropdown .dropdown-menu li a:hover {
    background: #F3F3F3;
    color: #000000;
    transform: none;
    box-shadow: none;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* Mostrar menú desplegable cuando está abierto por clase (para móviles) */
.nav-dropdown.open .dropdown-menu {
    display: block;
}

@media (max-width: 768px) {
    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin-top: 0.3rem;
    }
    .nav-dropdown .dropdown-menu li a {
        padding-left: 1.2rem;
        background: #F8F9FA;
        border-radius: 6px;
        margin-bottom: 0.15rem;
    }
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: #F8F9FA;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-menu .nav-cta {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 6px rgba(0, 191, 165, 0.2);
}

.nav-menu .nav-cta:hover {
    background-color: #00897B;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 191, 165, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    padding: 4rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-logo-img {
    max-width: 280px;
    height: auto;
    margin-bottom: 2rem;
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 350px;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Section: Who Am I */
.who-am-i {
    padding: 5rem 0;
    background-color: var(--color-white);
    text-align: center;
}

.who-am-i-content {
    max-width: 800px;
    margin: 0 auto;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.badge {
    background-color: var(--color-light-gray);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: bold;
}

/* Section: Services */
.services {
    padding: 5rem 0;
    background-color: var(--color-light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Flip Cards */
.service-flip-container {
    background-color: transparent;
    perspective: 1000px;
    height: 380px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 16px;
}

.service-flip-container:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-front, .service-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
}

.service-front {
    background-color: var(--color-white);
    z-index: 2;
}

.service-back {
    background-color: var(--color-primary);
    color: white;
    transform: rotateY(180deg);
    padding: 2rem 1rem;
}

.service-back h3 {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-back ul {
    list-style: none;
    width: 100%;
    text-align: left;
}

.service-back li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    line-height: 1.3;
}

.service-back li:last-child {
    border-bottom: none;
}

.service-card {
    /* Legacy style override */
    display: none;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

/* Section: Partners */
.partners {
    padding: 4rem 0;
    background-color: var(--color-white);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Simulation CTA Block */
.simulation-cta-block {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 0 auto;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    color: white;
    position: relative;
    overflow: hidden;
    max-width: 1000px;
}

.simulation-cta-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--color-accent);
}

.simulation-cta-block h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.simulation-cta-block p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.partners-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
}

.partner-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
}

/* Tarjeta Digital Section */
.tarjeta-digital-wrapper {
    padding: 40px 16px;
    background: #050505;
    color: #f8f8f8;
}

.tarjeta-digital {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.tarjeta-col {
    flex: 1 1 300px;
}

.tarjeta-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.tarjeta-logo-principal img {
    max-width: 220px;
    height: auto;
}

.tarjeta-qr-block {
    text-align: center;
    background: #101010;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.tarjeta-qr-block h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

#qrContacto {
    width: 220px;
    height: 220px;
    background: #ffffff;
    border-radius: 8px;
    margin: 8px 0;
}

.tarjeta-qr-text {
    font-size: 0.85rem;
    color: #dddddd;
}

.tarjeta-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tarjeta-header-personal {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tarjeta-foto img {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid #43C6C8;
}

.tarjeta-info-basica h2 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
}

.tarjeta-cargo {
    margin: 4px 0;
    font-weight: 500;
    color: #43C6C8;
}

.tarjeta-especialidad {
    margin: 0;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.tarjeta-datos-contacto p {
    margin: 4px 0;
    font-size: 0.9rem;
}

.tarjeta-datos-contacto a {
    color: #43C6C8;
    text-decoration: none;
}

.tarjeta-datos-contacto a:hover {
    text-decoration: underline;
}

.tarjeta-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.btn-tarjeta {
    flex: 1 1 180px;
    text-align: center;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid #43C6C8;
    background: transparent;
    color: #f8f8f8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-tarjeta:hover {
    background: #43C6C8;
    color: #050505;
}

.btn-whatsapp {
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background: #25D366;
    color: #050505;
}

.tarjeta-sello-confianza img {
    margin-top: 8px;
    max-width: 160px;
    height: auto;
}

@media (max-width: 768px) {
    .tarjeta-digital {
        flex-direction: column;
    }
    .tarjeta-header-personal {
        align-items: flex-start;
    }
}

/* Section: Contact */
.contact {
    padding: 5rem 0;
    text-align: center;
    background-color: #000000;
    background-image: linear-gradient(rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.92)), url('/3 EBG siglas.png');
    background-size: 400px;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--color-white);
}

.contact h2 {
    color: var(--color-white);
}

.contact p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

.social-links span {
    opacity: 0.9;
    font-size: 1rem;
    font-weight: 600;
}

.social-links a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.social-links a:hover {
    text-decoration: underline;
}

.social-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.social-icon-facebook {
    background-image: url("https://cdn.simpleicons.org/facebook/1877F2");
}

.social-icon-instagram {
    background-image: url("https://cdn.simpleicons.org/instagram/E4405F");
}

.social-icon-tiktok {
    background-image: url("https://cdn.simpleicons.org/tiktok/FFFFFF");
}

.footer-social {
    justify-content: flex-start;
    margin-top: 4px;
    font-size: 0.8rem;
}

/* Footer Fixed */
#footerContacto {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    color: #FFFFFF;
    font-size: 12px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans", sans-serif;
    padding: 4px 12px 2px;
    z-index: 9999;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
}

#footerContacto a {
    color: #FFFFFF;
    text-decoration: none;
}

#footerContacto a:hover {
    text-decoration: underline;
}

.footer-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-contacto {
    white-space: nowrap;
    font-weight: 300;
}

.footer-carrusel {
    overflow: hidden;
    flex: 1;
}

.footer-carrusel .logos-track {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: scrollLogos 25s linear infinite;
    width: max-content;
}

.footer-carrusel img {
    height: 48px;
    width: auto;
    opacity: 1;
    object-fit: contain;
}

@keyframes scrollLogos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.footer-version {
    text-align: right;
    font-size: 10px;
    margin-top: 2px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 968px) {
    h1 { font-size: 2rem; }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-logo-img {
        margin: 0 auto 2rem auto;
        max-width: 260px;
    }
    
    .hero-content {
        order: 1; /* Text first */
    }
    
    .hero-image {
        order: 2; /* Image below text on mobile */
        max-width: 300px;
        margin: 0 auto;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer adjustments */
    body { padding-bottom: 120px; }
    .footer-main-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-carrusel {
        width: 100%;
        margin-top: 4px;
    }
    .footer-carrusel img {
        height: 40px;
    }
    #footerContacto {
        font-size: 11px;
        padding: 4px 10px 2px;
    }
    .footer-version {
        display: none;
    }
}

