/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

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

/* Cinta superior con redes sociales */
.top-social-bar {
    background-color: #0F0F6F;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    height: 40px;
    box-sizing: border-box;
}

.top-social-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-social-icons {
    display: flex;
    align-items: center;
}

.top-social-networks-icon {
    width: 80px;
    height: auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.top-social-networks-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Header fijo */
.header {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    padding: 15px 0;
    margin: 0;
}

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

/* Logo */
.logo h2 {
    color: #9F40F9;
    font-size: 24px;
    font-weight: bold;
}

/* Texto central */
.tagline {
    flex-grow: 1;
    text-align: center;
    margin: 0 40px;
}

.tagline p {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

/* Contenedor del menú */
.menu-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Menú hamburguesa */
.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #90A3FF;
    margin: 2px 0;
    transition: 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Menú de navegación */
.nav-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform-origin: top center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px) scale(0.95);
    transition: all 0.3s ease;
    min-width: 180px;
    z-index: 1002;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.nav-menu ul {
    list-style: none;
    padding: 10px 0;
}

.nav-menu ul li {
    padding: 0;
}

.nav-menu ul li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-menu ul li a:hover {
    background-color: #f0f7ff;
    color: #9F40F9;
    transform: translateX(5px);
}

/* Sección Hero */
.hero {
    margin-top: 110px; /* Espacio para el header fijo + cinta social */
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Bloque de texto */
.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.purple-text {
    color: #9F40F9;
}

.hero-text h4 {
    font-size: 18px;
    font-weight: 400;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Botón CTA */
.cta-button {
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Bloque de imagen */
.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 120%;
    height: auto;
    border-radius: 12px;
    transform: scaleX(-1);
}

/* Sección Servicios */
.services {
    padding: 80px 0;
    background-image: url('images/Ellipse-blur.png');
    background-size: 120%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.services .container {
    position: relative;
    z-index: 2;
}

/* Header de servicios */
.services-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.services-header h4 {
    color: #9F40F9;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.services-header h3 {
    color: #333;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
}

.services-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Grid de tarjetas */
.services-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(370px, 260px));
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Tarjetas con efecto flip */
.service-card {
    height: 340px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

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

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-front {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
}

.card-back {
    background-color: #3b82f6;
    color: #ffffff;
    transform: rotateY(180deg);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: auto;
}

.card-front .service-icon {
    filter: none;
}

.card-back .service-icon {
    filter: brightness(0) saturate(100%) invert(100%);
}

.card-front h5 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: auto;
}

.card-back h5 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    margin-top: auto;
}

.card-back p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Sección Quiénes Somos */
.about-us {
    padding: 100px 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
}

.about-us::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 60%),
                radial-gradient(circle at 90% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    backdrop-filter: blur(8px);
    filter: blur(2px);
    pointer-events: none;
    z-index: 1;
}

.about-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40%;
    width: 60%;
    height: 100%;
    background-image: url('images/Image-quienes-somos.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
}



.about-us .container {
    position: relative;
    z-index: 3;
}

.about-content {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 50vh;
}

/* Bloque de texto */
.about-text {
    flex: 1;
    max-width: 600px;
    color: #ffffff;
    text-align: left;
    padding-right: 40px;
}

/* Bloque de imagen */
.about-image {
    flex: 1;
    height: max-content;
    min-height: 400px;
    z-index: 2;
    position: relative;
}

.about-text h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 25px;
    line-height: 1.2;
    color: #ffffff;
}

.about-text p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.98);
    text-align: left;
}

/* Sección Valores */
.values {
    padding: 80px 0;
    background-color: #f8fafc;
}

.values-header {
    text-align: center;
    margin-bottom: 60px;
}

.values-header h2 {
    font-size: 42px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 15px;
}

/* Grid de tarjetas de valores */
.values-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 0 auto;
}

/* Tarjetas individuales */
.value-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 60px 20px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Ícono superpuesto */
.card-icon {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 70px;
    height: 70px;
}

/* Contenido de la tarjeta */
.card-content h4 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    margin-top: 10px;
}

.card-content p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.5;
}

/* Sección Contacto */
.contact {
    position: relative;
}

/* Primer div con fondo azul (igual que about-us) */
.contact-top {
    padding: 80px 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
    position: relative;
    overflow: hidden;
    height: 50vh;
}

.contact-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 60%),
                radial-gradient(circle at 90% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    backdrop-filter: blur(8px);
    filter: blur(2px);
    pointer-events: none;
    z-index: 1;
}

.contact-top .container {
    position: relative;
    z-index: 2;
}

.contact-text {
    text-align: center;
    color: #ffffff;
}

.contact-text h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 25px;
    line-height: 1.2;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-text p {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Segundo div con fondo blanco */
.contact-bottom {
    padding: 80px 0;
    background-color: #ffffff;
    height: 50vh;
}

/* Tarjetas superpuestas */
.contact-cards {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    width: 90%;
    z-index: 10;
}

/* Tarjetas individuales */
.contact-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

/* Ícono en esquina superior derecha */
.card-icon-top {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
}

.card-icon-top img {
    width: 100%;
    height: 100%;
    filter: grayscale(1) opacity(0.8) brightness(0.4);
}

/* Contenido de tarjeta */
.contact-card .card-content h4 {
    font-size: 24px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 15px;
    margin-top: 0;
}

.contact-card .card-content p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 12px;
}

.contact-card .card-content .italic-text {
    font-style: italic;
    color: #94a3b8;
    font-size: 15px;
    margin-bottom: 25px;
}

/* Botones */
.whatsapp-button {
    background: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.whatsapp-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.email-button {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.email-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Sección Propósito */
.purpose {
    padding: 60px 0 80px;
    background-color: #f1f5f9;
    margin-top: -350px;
    position: relative;
    z-index: 5;
}

.purpose-content {
    text-align: center;
    max-width: 900px;
    margin: 0px auto 0;
}

.purpose-content h2 {
    font-size: 42px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 40px;
}

.purpose-content p {
    font-size: 18px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 50px;
    text-align: center;
}

.purpose-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.purpose-icon img {
    width: 700px;
}

/* Footer */
.footer {
    background-color: #0F0F6F;
    padding: 40px 0 30px;
    color: #ffffff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.footer-social {
    text-align: right;
}

.footer-social h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-networks-icon {
    width: 120px;
    height: auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-networks-icon:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #8f91C1;
    margin: 20px 0;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-social-bar {
        padding: 6px 0;
        height: 35px;
    }
    
    .top-social-networks-icon {
        width: 60px;
    }
    
    .header {
        top: 35px;
    }
    
    .hero {
        margin-top: 95px;
    }
    
    .tagline {
        display: none; /* Ocultar texto central en móviles */
    }
    
    .hero-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-text h4 {
        font-size: 16px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .services-header h3 {
        font-size: 28px;
    }
    
    .services-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-card {
        height: 300px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
        min-height: 40vh;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-image {
        height: 300px;
        min-height: 300px;
    }
    
    .about-text h2 {
        font-size: 36px;
    }
    
    .about-text p {
        font-size: 16px;
    }
    
    .about-us {
        padding: 80px 0;
        min-height: 70vh;
    }
    
    .values {
        padding: 60px 0;
    }
    
    .values-header h2 {
        font-size: 32px;
    }
    
    .values-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .purpose {
        padding: 50px 0 70px;
        margin-top: -200px;
    }
    
    .purpose-content {
        margin-top: 160px;
    }
    
    .purpose-content h2 {
        font-size: 32px;
    }
    
    .purpose-content p {
        font-size: 16px;
    }
    
    .purpose-icon img {
        width: 170px;
        height: 170px;
    }
    
    .contact-text h2 {
        font-size: 36px;
    }
    
    .contact-text p {
        font-size: 20px;
    }
    
    .contact-cards {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        grid-template-columns: 1fr;
        gap: 20px;
        margin: -60px auto 0;
        width: 90%;
    }
    
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .social-networks-icon {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .top-social-bar {
        padding: 5px 0;
        height: 30px;
    }
    
    .top-social-networks-icon {
        width: 50px;
    }
    
    .header {
        top: 30px;
    }
    
    .hero {
        margin-top: 85px;
    }
    
    .header .container {
        padding: 0 15px;
    }
    
    .logo h2 {
        font-size: 20px;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .services-header h3 {
        font-size: 24px;
    }
    
    .services-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        height: 280px;
    }
    
    .card-front, .card-back {
        padding: 20px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .about-text h2 {
        font-size: 28px;
    }
    
    .about-text p {
        font-size: 14px;
    }
    
    .about-us {
        padding: 60px 0;
        min-height: 60vh;
    }
    
    .about-content {
        min-height: 30vh;
    }
    
    .about-image {
        height: 250px;
        min-height: 250px;
    }
    
    .values {
        padding: 40px 0;
    }
    
    .values-header h2 {
        font-size: 28px;
    }
    
    .values-cards {
        gap: 25px;
    }
    
    .value-card {
        padding: 50px 20px 30px;
    }
    
    .card-content h4 {
        font-size: 20px;
    }
    
    .card-content p {
        font-size: 14px;
    }
    
    .purpose {
        padding: 30px 0 60px;
        margin-top: -160px;
    }
    
    .purpose-content {
        margin-top: 130px;
    }
    
    .purpose-content h2 {
        font-size: 28px;
    }
    
    .purpose-content p {
        font-size: 14px;
        margin-bottom: 40px;
    }
    
    .purpose-icon img {
        width: 150px;
        height: 150px;
    }
    
    .contact-top {
        padding: 60px 0;
        height: auto;
    }
    
    .contact-text h2 {
        font-size: 32px;
    }
    
    .contact-text p {
        font-size: 18px;
    }
    
    .contact-bottom {
        padding: 80px 0 60px;
        height: auto;
    }
    
    .contact-cards {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: -80px auto 0;
        gap: 15px;
        width: 95%;
    }
    
    .contact-card {
        padding: 25px;
    }
    
    .contact-card .card-content h4 {
        font-size: 20px;
        color: #4a5568;
    }
    
    .contact-card .card-content p {
        font-size: 14px;
    }
    
    .whatsapp-button,
    .email-button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .footer-logo h2 {
        font-size: 24px;
    }
    
    .footer-social h4 {
        font-size: 16px;
    }
    
    .social-networks-icon {
        width: 80px;
    }
}
