@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500;600&family=Playfair+Display:wght@600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #e2e2ec;
    color: #18154a;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    width: 100%;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
}
/*=========================
    MENÚ DESPLEGABLE
=========================*/

.dropdown{
    position: relative;
    display: inline-block;
}

.dropdown-menu{
    position:absolute;
    top:100%;
    left:50%;
    transform:translateX(-50%);
    margin-top:15px;

    min-width:190px;

    background:#fff;
    border-radius:12px;

    box-shadow:0 10px 30px rgba(0,0,0,.15);

    overflow:hidden;

    opacity:0;
    visibility:hidden;

    transition:.25s;
    z-index:999;
}

.dropdown:hover .dropdown-menu{
    opacity:1;
    visibility:visible;
    margin-top:8px;
}

.dropdown-menu a{
    display:block;
    padding:14px 20px;
    color:#1e2a78;
    text-decoration:none;
    font-weight:500;
    transition:.2s;
}

.dropdown-menu a:hover{
    background:#1e2a78;
    color:#fff;
}
/* ============================================================
   ANIMACIONES GLOBALES
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clases de animación para elementos */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 {
    transition-delay: 0.1s;
}
.animate-delay-2 {
    transition-delay: 0.2s;
}
.animate-delay-3 {
    transition-delay: 0.3s;
}
.animate-delay-4 {
    transition-delay: 0.4s;
}
.animate-delay-5 {
    transition-delay: 0.5s;
}

/* ============================================================
   1. Header / Navbar
   ============================================================ */
.site-header {
    width: 100%;
    background-color: #ffffff;
    height: 82px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideInDown 0.8s ease forwards;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 28px;
    font-weight: 600;
    color: #18154a;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #18154a;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c99700;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    border-bottom: 2px solid #c99700;
}

.nav-link.active::after {
    width: 100%;
}

.btn-contact {
    background-color: #c99700;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-contact:hover {
    background-color: #aa7f00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 151, 0, 0.3);
}

.btn-contact:hover::before {
    left: 100%;
}

/* ============================================================
   2. Hero Section
   ============================================================ */
.hero-section {
    width: 100%;
    background-color: #1e2a78;
    color: white;
    padding: 60px 0;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,151,0,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    animation: fadeInLeft 1s ease forwards;
}

.hero-text h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-text p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-yellow {
    background-color: #c99700;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-yellow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-yellow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 151, 0, 0.4);
}

.btn-yellow:hover::before {
    left: 100%;
}

.btn-outline {
    border: 1px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.hero-logo-mebna {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    animation: fadeInRight 1s ease forwards;
}

.hero-badge-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.25));
    animation: float 6s ease-in-out infinite;
}

/* ============================================================
   3. Sobre MEBNA
   ============================================================ */
.about-section {
    width: 100%;
    padding: 80px 0;
    display: flex;
    justify-content: center;
}

.about-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 0 20px;
}

.about-image-box {
    flex: 1;
    animation: fadeInLeft 1s ease both;
}

.about-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}



.about-text-box {
    flex: 1;
    animation: fadeInRight 1s ease 0.2s both;
}

.about-text-box h2 {
    font-size: 38px;
    color: #18154a;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.about-text-box p {
    font-size: 18px;
    line-height: 1.6;
    color: #4c4848;
    margin-bottom: 15px;
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.about-text-box p:nth-child(3) {
    animation-delay: 0.6s;
}
.about-text-box p:nth-child(4) {
    animation-delay: 0.7s;
}

/* ============================================================
   4. Servicios
   ============================================================ */
.services-section {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title-box {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-box h2 {
    font-size: 42px;
    color: #18154a;
    animation: fadeInUp 0.8s ease both;
}

.section-title-box .subtitle {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 300;
    margin-top: 5px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin-bottom: 30px;
}

.bottom-grid {
    max-width: 800px;
}

.service-card {
    background-color: #ffffff;
    flex: 1;
    min-width: 260px;
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.12);
}

.icon-container {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background-color: rgba(201, 151, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .icon-container {
    background-color: rgba(201, 151, 0, 0.15);
}

.card-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #18154a;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #c99700;
}

.service-card p {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.4;
    font-weight: 500;
}

/* ============================================================
   5. ¿Por qué elegir MEBNA?
   ============================================================ */
.why-choose-section {
    width: 100%;
    background-color: #1e2a78;
    color: white;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(201,151,0,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.why-choose-section h2 {
    font-size: 38px;
    margin-bottom: 40px;
    text-align: center;
    animation: fadeInUp 0.8s ease both;
    position: relative;
    z-index: 1;
}

.why-grid {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.why-card {
    border: 3px solid #ffffff;
    border-radius: 25px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}

.why-card:nth-child(1) { animation-delay: 0.1s; }
.why-card:nth-child(2) { animation-delay: 0.2s; }
.why-card:nth-child(3) { animation-delay: 0.3s; }
.why-card:nth-child(4) { animation-delay: 0.4s; }

.why-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #c99700;
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.3);
    background-color: rgba(201, 151, 0, 0.05);
}

.why-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.why-card:hover h3 {
    color: #c99700;
}

.why-card p {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.9;
}

/* ============================================================
   6. Contacto
   ============================================================ */
.contact-section {
    width: 100%;
    max-width: 1200px;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section h2 {
    font-size: 34px;
    color: #c99700;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease both;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 25px;
    animation: scaleIn 0.8s ease 0.2s both;
}

.wp-icon {
    width: 85px;
    height: 85px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-icon:hover {
    filter: drop-shadow(0px 8px 20px rgba(37, 211, 102, 0.3));
}

.contact-text h3 {
    font-size: 22px;
    color: #18154a;
    font-weight: 600;
}

.office-label {
    font-size: 15px;
    color: #18154a;
    font-weight: 500;
    margin: 2px 0 8px 0;
}

.wp-link {
    font-size: 16px;
    color: #18154a;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
    position: relative;
}

.wp-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c99700;
    transition: width 0.3s ease;
}

.wp-link:hover {
    color: #c99700;
}

.wp-link:hover::before {
    width: 100%;
}

/* ============================================================
   6. SECCIÓN CONVENIOS (Ahora como sección normal)
   ============================================================ */
.agreements-section {
    width: 100%;
    padding: 40px 0 80px 0;
    display: flex;
    justify-content: center;
}

.agreements-container {
    width: 92%;
    max-width: 1450px;
    background-color: rgba(201, 151, 0, 0.35); 
    border-radius: 40px;
    padding: 60px 40px;
    text-align: center;
}

.agreements-container h2 {
    font-size: 46px;
    color: #18154a;
    margin-bottom: 12px;
}

.agreements-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 55px;
    font-weight: 300;
}

.brands-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.brand-item img {
    height: 115px;
    width: auto;
    object-fit: contain;
    border-radius: 18px; 
    transition: transform 0.2s ease;
}

.blend-brand {
    mix-blend-mode: multiply;
    border-radius: 50% !important; 
}

.brand-item img:hover {
    transform: scale(1.05);
}

/* ============================================================
   7. FOOTER / PIE DE PÁGINA REAL
   ============================================================ */
.site-footer {
    width: 100%;
    background-color: #ffffff;
    padding: 25px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03); /* Sombra muy suave en el borde superior */
    margin-top: auto; /* Si el contenido es corto, empuja el footer al fondo */
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Lado Izquierdo --- */
.footer-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-brand {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #18154a;
    letter-spacing: 1px;
}

.footer-address {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666; 
    line-height: 1.5;
}

.footer-address strong {
    color: #18154a;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

/* --- Lado Derecho --- */
.footer-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #18154a;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-contact-link:hover {
    transform: translateY(-3px);
    color: #c99700;
}

.footer-wp-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-logo {
    height: 60px;
    width: 60px;
    object-fit: contain;
}

/* --- Responsive para celulares y tablets --- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 15px;
    }

    .footer-address {
        font-size: 15px;
    }
     .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

