:root {
    --primary-blue: #1e4d92;
    --dark-blue: #133a70;
    --accent-yellow: #fdd835;
    --accent-red: #d32f2f;
    --text-white: #ffffff;
    --text-black: #212121;
    --gray-light: #f5f5f5;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --font-main: 'Outfit', sans-serif;
    --font-accent: 'Bangers', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    font-family: var(--font-main);
    background-color: var(--gray-light);
    color: var(--text-black);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header / Navbar */
header,
.navbar {
    background-color: var(--primary-blue);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1,
#nav-logo,
#footer-logo {
    font-family: var(--font-accent);
    color: var(--text-white);
    letter-spacing: 2px;
    font-size: 1.8rem;
    margin: 0;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-yellow);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-yellow);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: var(--text-white);
    margin: 2px 0;
}

/* Hero Section */
#hero {
    min-height: 80vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--text-white);
    padding: 80px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.hero-text h1 {
    font-family: var(--font-accent);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-shadow: 3px 3px 0px var(--accent-red);
    border: 3px solid var(--accent-yellow);
    padding: 10px 20px;
    display: inline-block;
    transform: rotate(-1deg);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-visual {
    width: 100%;
    min-height: 400px;
    /* Asegurar altura para el lottie */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mascaras de diseño */
.hero-mask {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 2;
    opacity: 0.3;
    pointer-events: none;
}

.pink-mask {
    background-color: #ff00ff;
    top: -200px;
    right: -200px;
}

.yellow-mask {
    background-color: #ffff00;
    bottom: -200px;
    left: -200px;
}

.hero-title-box {
    margin-bottom: 25px;
    position: relative;
    z-index: 10;
}

.nosotros {
    background: var(--accent-red);
    padding: 5px 15px;
    font-weight: 900;
    display: inline-block;
    transform: skewX(-10deg);
    margin-bottom: 10px;
    color: white;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-weight: 900;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--dark-blue);
    box-shadow: 0 4px 0px #c2a600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0px #c2a600;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 0px 0px #c2a600;
}

/* Masks decoration */
.hero-mask {
    position: absolute;
    width: 150px;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
    opacity: 0.15;
}

@media (min-width: 768px) {
    .hero-mask {
        width: 300px;
        height: 400px;
    }
}

.pink-mask {
    left: -50px;
    bottom: -50px;
    transform: rotate(20deg);
    background-image: url('https://img.icons8.com/color/480/lucha-libre.png');
    /* Fallback icon */
    filter: hue-rotate(280deg);
}

.yellow-mask {
    right: -50px;
    top: -50px;
    transform: rotate(-20deg);
    background-image: url('https://img.icons8.com/color/480/lucha-libre.png');
    /* Fallback icon */
}

/* Servicios Section */
#servicios {
    padding: 80px 0;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
}

.section-title {
    font-family: var(--font-accent);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-blue);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background-color: var(--accent-red);
    margin: 10px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--text-white);
    border-radius: 15px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.service-card.featured {
    border-color: var(--accent-yellow);
    transform: scale(1.05);
    z-index: 10;
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.card-inner {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-accent);
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--dark-blue);
}

.card-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.price-box {
    margin: 20px 0;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
    vertical-align: top;
}

.price {
    font-family: var(--font-accent);
    font-size: 3.5rem;
    color: var(--dark-blue);
    line-height: 1;
}

.label-cotizar {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
}

.features {
    list-style: none;
    margin: 25px 0;
    text-align: left;
}

.features li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.95rem;
}

.features li::before {
    content: '⭐';
    margin-right: 10px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-yellow);
    color: var(--accent-yellow) !important;
}

.btn-outline:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-blue) !important;
}

.btn-card {
    width: 100%;
    background-color: var(--primary-blue);
    color: var(--text-white);
}

.btn-yellow {
    background-color: var(--accent-yellow);
    color: var(--dark-blue);
}

/* Beneficios */
#beneficios {
    padding: 60px 0;
    background-color: var(--primary-blue);
    color: var(--text-white);
}

.benefits-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-right: 20px;
}

.benefit-text h4 {
    color: var(--accent-yellow);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.benefit-text p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.banner-text {
    background-color: var(--accent-red);
    margin-top: 60px;
    padding: 20px;
    text-align: center;
    position: relative;
    /* Ensure it stays in flow */
}

.banner-text p {
    font-family: var(--font-accent);
    font-size: 2.5rem;
}

.banner-text span {
    color: var(--accent-yellow);
}

/* Contacto */
#contacto {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.contact-box {
    background-color: var(--text-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.contact-subtitle {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

input,
select,
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-blue);
}

.btn-block {
    width: 100%;
}

/* Footer */
footer {
    background-color: #111;
    color: var(--text-white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-logo h2 {
    font-family: var(--font-accent);
}

.footer-logo span {
    color: var(--accent-yellow);
}

.footer-logo p {
    font-size: 0.8rem;
    color: #888;
}

.footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: row;
        justify-content: space-between;
    }

    #main-nav {
        display: none;
        /* Mejorar el menú móvil en la próxima iteración si hace falta */
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    #hero {
        padding: 60px 0;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 20px;
    }

    .hero-text h1 {
        transform: rotate(0);
        font-size: 2.2rem;
        padding: 10px;
    }

    .hero-text h1 span {
        font-size: 3rem;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-visual {
        order: 2;
        margin-top: 20px;
        min-height: 300px;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .main-title {
        font-size: 1.8rem;
        padding: 5px 10px;
        border-width: 3px;
    }

    .pre-title {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .banner-text p {
        font-size: 1.5rem;
        /* Reduced from 2.5 */
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card.featured {
        transform: none;
    }

    .service-card.featured:hover {
        transform: translateY(-10px);
    }

    .contact-box {
        padding: 30px 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 20px;
    }
}

/* TESTIMONIOS ESTILO FACEBOOK */
#testimonios {
    padding: 80px 0;
    background-color: #f0f2f5;
}

.fb-comments-container {
    max-width: 700px;
    margin: 40px auto 0;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.fb-comment {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.fb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.fb-replies .fb-avatar {
    width: 32px;
    height: 32px;
}

.fb-comment-content {
    flex: 1;
}

.fb-comment-bubble {
    background-color: #f0f2f5;
    padding: 10px 15px;
    border-radius: 18px;
    display: inline-block;
    max-width: 100%;
}

.fb-user-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #050505;
    margin-bottom: 2px;
}

.fb-user-name:hover {
    text-decoration: underline;
    cursor: pointer;
}

.fb-comment-bubble p {
    font-size: 0.9rem;
    color: #050505;
    margin: 0;
    line-height: 1.4;
}

.fb-comment-actions {
    font-size: 0.75rem;
    margin-top: 4px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #65676b;
    position: relative;
}

.fb-action {
    font-weight: 700;
    cursor: pointer;
}

.fb-action:hover {
    text-decoration: underline;
}

.fb-action.liked {
    color: #1877f2;
}

.fb-action.btn-like {
    transition: color 0.2s;
}

.fb-time {
    font-weight: 400;
}

/* Badge de Likes */
.fb-likes-badge {
    position: absolute;
    right: 0;
    top: -15px;
    background: white;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #65676b;
    border: 1px solid #eee;
}

.fb-replies {
    margin-top: 10px;
    margin-left: 0;
    border-left: 2px solid #e4e6eb;
    padding-left: 15px;
}

@media (max-width: 768px) {
    .fb-comments-container {
        padding: 15px;
    }

    .fb-comment-bubble {
        padding: 8px 12px;
    }
}

.fb-load-more {
    display: block;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #1877f2;
    font-weight: 700;
    text-decoration: none;
    margin-left: 12px;
}

.fb-load-more:hover {
    text-decoration: underline;
}

/* WHATSAPP WIDGET */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Efecto pulso para el botón flotante */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.5;
    z-index: -1;
    animation: lottie-pulse 2s infinite;
}

@keyframes lottie-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-float img {
    width: 40px;
    height: 40px;
}

/* Badge (Punto Rojo) */
.whatsapp-float::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background-color: #ff3b30;
    border: 2px solid white;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 10001;
}

.whatsapp-float.notif-active::after {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* WHATSAPP CHAT BUBBLE - HIGH FIDELITY */
.wa-tooltip {
    position: absolute;
    right: 0;
    bottom: 85px;
    width: 300px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 10002;
    pointer-events: auto;
    cursor: pointer;
}

.wa-tooltip.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Colita del globo */
.wa-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
}

.wa-chat-header {
    background-color: #075e54;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-chat-header img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
}

.wa-chat-info {
    display: flex;
    flex-direction: column;
}

.wa-chat-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.wa-chat-status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wa-chat-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #43d854;
    border-radius: 50%;
    display: inline-block;
}

.wa-chat-body {
    padding: 20px;
    background-color: #e5ddd5;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    position: relative;
}

.wa-chat-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(229, 221, 213, 0.4);
}

.wa-chat-body p {
    background-color: #fff;
    padding: 12px 18px;
    border-radius: 0 15px 15px 15px;
    font-size: 0.9rem;
    color: #444;
    margin: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
    position: relative;
    z-index: 1;
    font-weight: 500;
    text-align: left;
}

.wa-chat-body p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-right: 12px solid #fff;
    border-bottom: 12px solid transparent;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 25px;
        right: 25px;
        width: 58px;
        height: 58px;
    }

    .wa-tooltip {
        width: 260px;
        bottom: 75px;
        right: -10px;
    }

    .wa-tooltip::after {
        right: 28px;
    }
}