:root {
    --blue-light: #2DA8FF;
    --blue-medium: #1C7ED6;
    --blue-soft: #E8F6FF;
    --text-main: #111111;
    --text-muted: #555555;
    --white: #FFFFFF;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text-main);
}

/* TOP BAR */
.top-bar {
    background: var(--blue-medium);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .left i {
    margin-right: 6px;
}

.top-bar a {
    color: var(--white);
    margin-right: 15px;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

/* MAIN HEADER */
.main-header {
    background: var(--white);
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 0;
}

.main-header .container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

/* DESKTOP MENU */
.desktop-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.desktop-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: 0.2s;
}

.desktop-menu a:hover {
    color: var(--blue-medium);
}

/* SUBMENU */
.submenu {
    position: relative;
}

.submenu > ul {
    position: absolute;
    top: 100%; /* Se pega justo debajo del botón */
    left: 0;
    background: var(--white);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 0;
    display: none;
    min-width: 220px;
    z-index: 999;
    text-align: left;
}

/* Mantiene el submenú abierto mientras el ratón esté encima */
.submenu:hover > ul {
    display: block;
}

/* Aumenta el área de hover para evitar huecos */
.submenu > a {
    padding-bottom: 12px;
}

/* Estilos de los enlaces del submenú */
.submenu ul li {
    padding: 0;
}

.submenu ul a {
    display: block;
    padding: 10px 15px;
    color: var(--text-main);
}

.submenu ul a:hover {
    background: var(--blue-soft);
    color: var(--blue-medium);
}


/* MOBILE MENU BUTTON */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}


/* MENÚ MÓVIL */
.mobile-menu-btn {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--blue-medium);
}

@media (max-width: 900px) {
    .desktop-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    padding: 20px;
    transition: 0.3s ease;
    z-index: 9999;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-close {
    text-align: right;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 20px;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 12px;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
}

.mobile-submenu .submenu-content {
    display: none;
    padding-left: 15px;
    margin-top: 10px;
}

.mobile-submenu.open .submenu-content {
    display: block;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9998;
}

.mobile-menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.no-scroll {
    overflow: hidden;
}


/* HEADER */
header {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--blue-medium);
}

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--blue-light), var(--blue-medium));
    text-align: center;
    color: var(--white);
}

.hero h2 .hero-pages {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: var(--white);
    color: var(--blue-medium);
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-primary:hover {
    background: var(--blue-soft);
}

/* HERO / CAROUSEL */
.hero {
    position: relative;
    height: 420px;
    overflow: hidden;
}


.hero .slides {
    height: 100%;
    position: relative;
}

.hero .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero .slide.active {
    opacity: 1;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35));
}

.hero .content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.hero .content h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.hero .content p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* BOTÓN PRINCIPAL */
.btn-primary {
    display: inline-block;
    padding: 12px 26px;
    background: var(--blue-light);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-primary:hover {
    background: var(--blue-medium);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* CONTENEDOR GENERAL */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SERVICIOS DESTACADOS */
.servicios-destacados {
    padding: 60px 0;
}

.servicios-destacados h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
    color: var(--blue-medium);
}

.servicios-destacados .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.servicio {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    transition: 0.2s;
}

.servicio i {
    color: var(--blue-medium);
    margin-bottom: 10px;
}

.servicio h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.servicio p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.btn-link {
    color: var(--blue-medium);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.servicio:hover {
    border-color: var(--blue-light);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* POR QUÉ ELEGIRNOS */
.porque-elegirnos {
    padding: 60px 0;
    background: var(--blue-soft);
}

.porque-elegirnos h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
    color: var(--blue-medium);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.porque-elegirnos .card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    border: 1px solid #e5e5e5;
}

.porque-elegirnos .card i {
    color: var(--blue-medium);
    margin-bottom: 10px;
}

.porque-elegirnos .card h3 {
    margin-bottom: 8px;
}

/* SOBRE NOSOTROS */
.sobre-nosotros {
    padding: 60px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}

.sobre-nosotros h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--blue-medium);
}

.sobre-nosotros p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.img-box img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* TODOS LOS SERVICIOS */
.todos-servicios {
    padding: 60px 0;
    background: #f7f9fb;
}

.todos-servicios h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
    color: var(--blue-medium);
}

.servicio-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 999px;
    border: 1px solid #e5e5e5;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    transition: 0.2s;
}

.servicio-mini i {
    color: var(--blue-medium);
}

.servicio-mini:hover {
    border-color: var(--blue-light);
    background: var(--blue-soft);
}

/* CTA FINAL */
.cta-final {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-medium));
    color: #fff;
}

.cta-final h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.cta-final p {
    margin-bottom: 20px;
}

/* OPINIONES */
.opiniones {
    padding: 60px 0;
}
 
.opiniones h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
    color: var(--blue-medium);
}

.opiniones .card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    font-size: 14px;
    color: var(--text-muted);
}

.opiniones .card span {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--text-main);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        height: auto;
    }

    .hero .content {
        padding: 60px 20px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}


/* SERVICES */
.services {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}

.services h3 {
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    color: var(--blue-medium);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    border: 1px solid #e5e5e5;
    padding: 25px;
    border-radius: 12px;
    transition: 0.2s;
}

.card:hover {
    border-color: var(--blue-light);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.card h4 {
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--blue-medium);
}

.card p {
    font-size: 15px;
    color: var(--text-muted);
}

/* HERO PEQUEÑO */
.hero-small {
    height: 300px;
}

/* SECCIÓN EMPRESA */
.empresa-section {
    padding: 60px 0;
}

.empresa-section h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--blue-medium);
}

.empresa-section p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

/* VALORES */
.empresa-valores {
    padding: 60px 0;
    background: var(--blue-soft);
}

.empresa-valores h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
    color: var(--blue-medium);
}

.empresa-valores .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.valor {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid #e5e5e5;
}

.valor i {
    color: var(--blue-medium);
    margin-bottom: 10px;
}

.valor h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

/* CTA SECCIÓN */
.cta-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-medium));
    color: #fff;
}

.cta-section h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.cta-section p {
    margin-bottom: 20px;
}

/* REVEAL (animación suave) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}



/* FOOTER */
.footer {
    background: var(--blue-medium);
    color: var(--white);
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--white);
    text-decoration: none;
    transition: 0.2s;
}

.footer-col ul a:hover {
    text-decoration: underline;
}

.footer-logo {
    width: 50%;
    margin-bottom: 10px;
}

.footer-logo-sf {
    width: 120px;
    margin: 10px 0;
}

.grupo-text {
    font-size: 14px;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 40px;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.9;
}

