/*estilos pagina web */
:root {
    --primary-color: #3F6DB3;
    --secondary-color: #F7F7F7;
    --success-color: #48AD54;
    --info-color: #554796;
    --warning-color: #FFD500;
    --danger-color: #E5294A;
    --light-color: #f8f9fa;
    --dark-color: #333333;
    --accent-color: #FFD500;
    --text-color: #F7F7F7;
    --light-text: #F7F7F7;
    --dark-text: #333333;
    --whatsapp-color: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--dark-color);
    scroll-padding-top: 80px; /* Ajuste para el header fijo */
}

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

/* Header */
header {
    background-color: #222222;
    color: var(--light-text);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 15px 0;
    background-color: rgba(34, 34, 34, 0.85);

    box-shadow:
    inset 0 -2px 0 #F7F7F7,
    inset 0 -4px 0 #E5294A,
    inset 0 -6px 0 #3F6DB3,
    inset 0 -8px 0 #48AD54,
    inset 0 -10px 0 #FFD500;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
    display: inline-flex;          /* para alinear icono con texto */
    align-items: center;
  }
  
  .logo-text .c1 { color: var(--warning-color); }
  .logo-text .c2 { color: var(--success-color); }
  .logo-text .c3 { color: var(--primary-color); }
  .logo-text .c4 { color: var(--danger-color); }
  
  .logo-text .logo-icon {
    color: #fff;                   /* o var(--light-text) */
    margin-left: 3px;              /* separación */
    font-size: 0.5em;              /* escalado */
    vertical-align: middle;        /* o con el inline-flex ya basta */
  }
  
  
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--warning-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--warning-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--light-text);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #222222 0%, var(--primary-color) 100%);
    color: var(--light-text);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,224C672,213,768,171,864,165.3C960,160,1056,192,1152,197.3C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--warning-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.btn {
    display: inline-block;
    background-color: var(--warning-color);
    color: var(--dark-text);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 213, 0, 0.3);
    margin-bottom: 10px;
}

.btn:hover {
    background-color: #e6c000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 213, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--warning-color);
    color: var(--light-text);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--warning-color);
    color: var(--dark-text);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background-color: #1da851;
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: #2a2a2a;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--light-text);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--warning-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.mission-vision {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.mission, .vision {
    flex: 1;
    background-color: #333333;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mission:hover, .vision:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.mission h3, .vision h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

.mission h3 i, .vision h3 i {
    margin-right: 15px;
    color: var(--warning-color);
    font-size: 2rem;
}

.mission p, .vision p {
    color: #ccc;
    line-height: 1.7;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: #222222;
}

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

.service-card {
    background-color: #333333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    background-color: var(--primary-color);
    color: var(--light-text);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.service-content p {
    color: #ccc;
    margin-bottom: 20px;
}

/* Clients Section */
.clients {
    padding: 100px 0;
    background-color: #2a2a2a;
    overflow: hidden;
}

.clients-carousel {
    margin-top: 50px;
    position: relative;
}

.clients-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(250px * 16); /* 8 logos x 2 (para loop) */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 8)); } /* 8 logos */
}

.client-item {
    width: 250px;
    height: 150px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.client-logo {
    background-color: #333333;
    width: 150px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.client-logo img {
    max-width: 80%;
    max-height: 80%;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.client-item:hover .client-logo {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.client-item:hover .client-logo img {
    filter: grayscale(0%);
}

.client-name {
    color: var(--light-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.clients-carousel::before,
.clients-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
}

.clients-carousel::before {
    left: 0;
    background: linear-gradient(to right, #2a2a2a, transparent);
}

.clients-carousel::after {
    right: 0;
    background: linear-gradient(to left, #2a2a2a, transparent);
}

/* Target Audience */
.audience {
    padding: 100px 0;
    background-color: #222222;
}

.audience-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.audience-card {
    background-color: #333333;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.audience-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.audience-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-text);
    text-align: center;
}

.audience-card p {
    color: #ccc;
    text-align: center;
}

/* Value Proposition */
.value-prop {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    color: var(--light-text);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Bajar el ::before por debajo del contenido */
.value-prop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" fill-opacity="1" d="M0,160L48,170.7C96,181,192,203,288,202.7C384,203,480,181,576,186.7C672,192,768,224,864,218.7C960,213,1056,171,1152,165.3C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.1;
    z-index: -1; /* <- así se coloca detrás del contenido */
}

.value-prop h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.value-prop p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.value-prop .btn {
    background-color: var(--warning-color);
    color: var(--dark-text);
    position: relative; /* para garantizar que quede encima del ::before */
    z-index: 1;
}

.value-prop .btn:hover {
    background-color: #e6c000;
}


/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: #222222;
}

.contact-container {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

.contact-info p {
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-details li i {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-details li a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-details li a:hover {
    color: var(--warning-color);
}

.contact-form {
    flex: 1;
    background-color: #333333;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: var(--light-text);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 109, 179, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--warning-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--light-text);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--warning-color);
    color: var(--dark-text);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero p {
        margin: 0 auto 30px;
    }
    
    .mission-vision {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #222222;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all 0.4s ease;
    }
    
    nav ul.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    nav ul li {
        margin: 15px 0;
    }
    @media (max-width: 768px) {
  /* 1) Aseguramos un contenedor relativo */
  .header-container {
    position: relative;
  }

  /* 2) Solo reposicionamos el botón */
  .mobile-menu-btn {
    position: absolute;
    top: 50%;
    right: 20px;         /* ajusta este valor si quieres más o menos espacio */
    transform: translateY(-50%);
    margin: 0;           /* eliminamos márgenes heredados */
  }
}
/* Móvil: mantenemos tu comportamiento original */
@media(max-width: 767px) {
    /* Posiciona tu nav ul móvil justo debajo del header */
    header > nav.d-md-none {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: #222;
      clip-path: polygon(0 0,100% 0,100% 0,0 0);
      transition: clip-path .4s ease;
    }
    header > nav.d-md-none ul.active {
      clip-path: polygon(0 0,100% 0,100% 100%,0 100%);
    }
  }
  
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .clients-track {
        animation: scroll 20s linear infinite;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .client-item {
        width: 200px;
    }
    
    .clients-track {
        width: calc(200px * 16);
    }
    
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-200px * 8)); }
    }
}

/* Solo en pantallas ≥768px (desktop) */
@media (min-width: 768px) {
    /* Seleccionamos tu botón PORTAL MIMOD en la cabecera */
    .header-container > a.btn.d-none.d-md-inline-block {
      margin-top: 8px;          /* sube o baja este valor a tu gusto */
      /* alternativa usando translate:
      transform: translateY(4px);
      */
    }
  }
  