:root {
    --bg: #0b1220;
    --card: #111827;
    --accent: #fbbf24;
    --text: #f9fafb;
    --muted: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
}

/* HEADER */

header {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 18, 32, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

nav a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* HERO */


.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 8% 80px;
    background: url('../images/hero.webp') center/cover no-repeat;
    overflow: hidden;
}

/* Overlay oscuro + degradado lateral */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(5, 10, 25, 0.95) 0%,
            rgba(5, 10, 25, 0.85) 35%,
            rgba(5, 10, 25, 0.6) 65%,
            rgba(5, 10, 25, 0.4) 100%);
    z-index: 1;
}

/* Contenido encima */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #ffffff;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #d1d5db;
    margin-bottom: 35px;
    max-width: 600px;
}


.hero-buttons {
    margin-top: 35px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

/* Botón principal */
.btn-primary {
    background: var(--accent);
    color: #000;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
}

/* Botón secundario oscuro */
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 16px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Botón outline */
.btn-outline {
    padding: 16px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--accent);
    color: var(--accent);
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--accent);
    color: #000;
}

/* SECTIONS */

section {
    padding: 120px 8%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--muted);
}

/* CARDS */

.servicios-grid,
.grid-3,
.pricing-grid {
    display: grid;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.servicios-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: var(--card);
    padding: 35px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.card h3 {
    color: var(--accent);
    margin-bottom: 15px;
}

.card ul {
    list-style: none;
}

.card ul li {
    margin-bottom: 10px;
    color: var(--muted);
}

.cta-center {
    margin-top: 60px;
    text-align: center;
}

/* PRICING */

.price-card {
    background: var(--card);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.price-card.featured {
    border: 2px solid var(--accent);
}

.price {
    font-size: 1.8rem;
    margin-top: 20px;
    color: var(--accent);
}

/* FORM */

form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input,
textarea {
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: #1f2937;
    color: #fff;
}

button {
    padding: 15px;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* FOOTER */

footer {
    padding: 40px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-img {
    display: block;
    margin: 60px auto;
    max-width: 1200px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ========================= */
/* FLOATING ACTION BUTTON PRO */
/* ========================= */

.pcontrol-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.fab-main {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.fab-main:hover {
    transform: scale(1.1);
}

.fab-options {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.3s;
}

.fab-options.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fab-item {
    padding: 14px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: 0.3s;
    white-space: nowrap;
}

.fab-item:hover {
    transform: translateX(-5px);
    border: 1px solid #fbbf24;
}

.fab-item.whatsapp {
    border-left: 4px solid #25D366;
}

.fab-item.agenda {
    border-left: 4px solid #fbbf24;
}

.fab-item.email {
    border-left: 4px solid #3b82f6;
}

/* ========================= */
/* CONTACT PRO */
/* ========================= */

.contact-pro {
    padding: 140px 8%;
    background: linear-gradient(180deg, #0b1220 0%, #0f1a33 100%);
}

.contact-container {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.contact-sub {
    color: var(--muted);
    margin-bottom: 60px;
    font-size: 1.05rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

#contact-form input,
#contact-form textarea {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #1f2937;
    color: white;
    font-size: 0.95rem;
    transition: 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border: 1px solid var(--accent);
}

#contact-form textarea {
    min-height: 140px;
    resize: none;
    margin-bottom: 25px;
}

.form-response {
    margin-top: 20px;
    font-weight: 600;
}

.hero-docs {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #111827;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover {
    border: 1px solid var(--accent);
    transform: translateY(-2px);
}

.btn-outline {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--accent);
    border: 1px solid var(--accent);
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--accent);
    color: #000;
}

.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    width: 92%;
    max-width: 1100px;
    height: 85%;
    margin: 4% auto;
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.modal-content iframe {
    width: 100%;
    height: 100%;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fbbf24;
    /* color acento */
    color: #000;

    font-size: 22px;
    font-weight: bold;

    border-radius: 50%;
    cursor: pointer;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    z-index: 999999;
    transition: 0.3s;
}

.modal-close:hover {
    transform: scale(1.1);
    background: #f59e0b;
}

.fab-options {
    opacity: 0;
    pointer-events: none;
}

.fab-options.active {
    opacity: 1;
    pointer-events: auto;
}


.presentation-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
}

.presentation-content {
    position: relative;
    width: 90%;
    height: 90%;
    margin: 3% auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.presentation-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
}

.presentation-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: #fbbf24;
    cursor: pointer;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: white;
    font-size: 30px;
    padding: 18px 22px;
    cursor: pointer;
    border-radius: 10px;
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

.slide-indicator {
    position: absolute;
    bottom: 25px;
    color: white;
    font-size: 14px;
}

/* Responsive */


@media(max-width:768px) {
    .fab-item {
        font-size: 0.8rem;
        padding: 12px 18px;
    }
}


/* RESPONSIVE */

@media(max-width:900px) {

    nav {
        display: none;
        flex-direction: column;
        background: var(--card);
        position: absolute;
        right: 0;
        top: 70px;
        padding: 20px;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    section {
        padding: 90px 6%;
    }
}