:root {
    --purple: #6C3CE0;
    --purple-light: #8B5CF6;
    --purple-dark: #4C1D95;
    --purple-glow: rgba(108, 60, 224, 0.35);
    --purple-soft: #f3edff;
    --bg: #fafafa;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-muted: #64748b;
    --border: #e8e0f0;
    --border-hover: #c4b5fd;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 10px 25px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 20px 48px rgba(0,0,0,0.08);
    --shadow-purple: 0 8px 32px rgba(108, 60, 224, 0.18);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 2%;
    height: 64px;
    border-bottom: 1px solid var(--border);
    color: white;
    background: linear-gradient(135deg, #0a0a12 0%, #1a1025 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.headerLogo,
header > a:first-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

.headerLogo img,
header > a > img,
header > img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--purple);
    transition: var(--transition);
    filter: drop-shadow(0 0 6px var(--purple-glow));
}

.headerLogo:hover img,
header > a:hover > img,
header > img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 12px var(--purple-glow));
}

.headerLogo h1,
header > a > h1,
header > h1 {
    padding-left: 0;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff 0%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.headerLogo:hover h1,
header > a:hover > h1 {
    opacity: 0.9;
}

header > nav {
    margin-left: auto;
    margin-right: 0.5%;
}

header > nav > ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

header > nav > ul > li > a {
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

header > nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header > nav > ul > li > a:hover {
    color: #fff;
}

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

header > nav > ul > li > a.navActivo {
    color: #fff;
}

header > nav > ul > li > a.navActivo::after {
    width: 100%;
}

main {
    padding: 2% 5%;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.heroCarrusel {
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.carruselContenedor {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}

.carruselTrack {
    width: 100%;
    height: 100%;
    position: relative;
}

.carruselSlide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carruselSlide.activo {
    opacity: 1;
}

.carruselSlide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carruselTexto {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10,10,18,0.78) 0%, rgba(76,29,149,0.45) 50%, rgba(10,10,18,0.78) 100%);
    padding: 30px;
}

.carruselTexto h2 {
    font-size: 3.5rem;
    margin-bottom: 16px;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    letter-spacing: 4px;
    font-weight: 700;
}

.carruselTexto p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 35px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.4);
    max-width: 650px;
    text-align: center;
    line-height: 1.7;
}

.carruselFlecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.35);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carruselFlecha:hover {
    background: var(--purple);
    border-color: var(--purple);
    transform: translateY(-50%) scale(1.1);
}

.carruselIzq {
    left: 18px;
}

.carruselDer {
    right: 18px;
}

.carruselPuntos {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carruselPunto {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carruselPunto.activo {
    background: var(--purple-light);
    border-color: var(--purple-light);
    transform: scale(1.2);
}

.carruselPunto:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.15);
}

.btnCta {
    display: inline-block;
    padding: 16px 44px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    color: white;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--purple-glow);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btnCta::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;
}

.btnCta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(108, 60, 224, 0.4);
}

.btnCta:hover::before {
    left: 100%;
}

.beneficios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

.beneficioCard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out both;
    position: relative;
    overflow: hidden;
}

.beneficioCard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.beneficioCard:hover::before {
    transform: scaleX(1);
}

.beneficioCard:nth-child(1) { animation-delay: 0.1s; }
.beneficioCard:nth-child(2) { animation-delay: 0.2s; }
.beneficioCard:nth-child(3) { animation-delay: 0.3s; }

.beneficioCard:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-purple);
    border-color: var(--border-hover);
}

.beneficioCard img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 18px;
    border: 3px solid var(--purple-soft);
    padding: 4px;
    background: var(--purple-soft);
    transition: var(--transition);
}

.beneficioCard:hover img {
    border-color: var(--purple);
    transform: scale(1.08);
}

.beneficioCard h3 {
    color: var(--purple);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.beneficioCard p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.nosotrosIntro {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease-out;
}

.nosotrosIntro h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 1px;
}

.nosotrosIntro p {
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.05rem;
}

.equipoGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

.tarjetaEquipo {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out both;
    position: relative;
    overflow: hidden;
}

.tarjetaEquipo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tarjetaEquipo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.tarjetaEquipo:nth-child(1) { animation-delay: 0.1s; }
.tarjetaEquipo:nth-child(2) { animation-delay: 0.2s; }
.tarjetaEquipo:nth-child(3) { animation-delay: 0.3s; }

.tarjetaEquipo:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-purple);
    border-color: var(--border-hover);
}

.tarjetaEquipo img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--purple-soft);
    margin-bottom: 18px;
    transition: var(--transition);
}

.tarjetaEquipo:hover img {
    border-color: var(--purple);
    transform: scale(1.06);
}

.tarjetaEquipo h3 {
    margin-bottom: 6px;
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 600;
}

.tarjetaEquipo .cargo {
    color: var(--purple);
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.tarjetaEquipo .camara {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.galeriaTitulo {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
    margin-bottom: 28px;
}

.galeriaGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.galeria3col {
    grid-template-columns: repeat(3, 1fr);
}

.galeriaItem {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: pointer;
}

.galeriaItem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.galeriaItem:hover img {
    transform: scale(1.08);
}

.galeriaOverlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
}

.galeriaItem:hover .galeriaOverlay {
    opacity: 1;
    transform: translateY(0);
}

.ctaSeccion {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 50%, var(--purple-light) 100%);
    border-radius: var(--radius);
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.ctaSeccion::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.ctaSeccion p {
    margin-bottom: 28px;
    color: white;
    font-size: 1.25rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.ctaSeccion .btnCta {
    background: white;
    color: var(--purple);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.ctaSeccion .btnCta::before {
    background: linear-gradient(90deg, transparent, rgba(108,60,224,0.15), transparent);
}

.ctaSeccion .btnCta:hover {
    background: #f8f5ff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transform: translateY(-3px);
}

.servicioCard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 50px;
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.servicioCard::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

.servicioCard:hover {
    box-shadow: var(--shadow-purple);
    border-color: var(--border-hover);
}

.servicioImg {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 24px;
    object-fit: cover;
    max-height: 400px;
}

.servicioCard h2 {
    margin-bottom: 16px;
    font-size: 1.9rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.servicioCard p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 1rem;
}

.precioBase {
    color: var(--purple) !important;
    font-size: 1.35rem !important;
    font-weight: 700;
    margin-top: 18px !important;
    display: inline-block;
    background: var(--purple-soft);
    padding: 8px 20px;
    border-radius: 50px;
}

.cotizador {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease-out;
}

.cotizador h2 {
    margin-bottom: 24px;
    color: var(--text);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.formulario label {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.formulario input[type="number"],
.formulario input[type="text"],
.formulario input[type="password"],
.formulario textarea,
.formulario select {
    padding: 14px 18px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: "Oswald", sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236C3CE0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.formulario input[type="number"]:focus,
.formulario input[type="text"]:focus,
.formulario input[type="password"]:focus,
.formulario textarea:focus,
.formulario select:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(108, 60, 224, 0.1);
    background-color: white;
}

.formulario input::placeholder,
.formulario textarea::placeholder {
    color: #a0a0b0;
}

.checkImpresiones {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.checkImpresiones:hover {
    border-color: var(--border-hover);
}

.checkImpresiones input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--purple);
    cursor: pointer;
}

.checkImpresiones label {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
}

.formulario button,
.loginAdmin button {
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: "Oswald", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    align-self: center;
    box-shadow: 0 4px 16px var(--purple-glow);
    position: relative;
    overflow: hidden;
}

.formulario button::before,
.loginAdmin button::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;
}

.formulario button:hover,
.loginAdmin button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(108, 60, 224, 0.35);
}

.formulario button:hover::before,
.loginAdmin button:hover::before {
    left: 100%;
}

#errorHoras,
#errorLogin {
    color: #dc2626;
    font-size: 0.95rem;
    min-height: 22px;
    font-weight: 500;
}

#resumenReserva {
    background: var(--purple-soft);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin-top: 12px;
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

#resumenReserva h3 {
    color: var(--purple);
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 600;
}

.resumenFila {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.resumenFila:last-child {
    border-bottom: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.15rem;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 2px solid var(--purple);
}

.contactoInfo {
    margin-bottom: 40px;
    width: 100%;
}

.loginAdmin {
    margin-bottom: 50px;
    width: 100%;
}

.contactoLayout {
    display: flex;
    gap: 48px;
    margin-top: 24px;
    width: 100%;
}

.contactoLayout > div {
    flex: 1;
}

.contactoLayout .cotizador {
    flex: 1;
}

.contactoInfo > h2,
.loginAdmin > h2 {
    margin-bottom: 24px;
    font-size: 1.7rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mapaContenedor {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.mapaIframe {
    border: 0;
    display: block;
}

.infoContacto p {
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.8;
    font-size: 1rem;
}

.infoContacto strong {
    color: var(--text);
    font-weight: 600;
}

.loginAdmin .formulario {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
}

#panelAdmin {
    margin-top: 36px;
    animation: fadeIn 0.6s ease-out;
    width: 100%;
    box-sizing: border-box;
}

.adminCard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 28px;
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.adminCard::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

.adminCard:hover {
    box-shadow: var(--shadow-purple);
    border-color: var(--border-hover);
}

.adminCard h3 {
    color: var(--purple);
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.adminCard p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.btnVaciar {
    margin-top: 16px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: "Oswald", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btnVaciar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}

.tablaContenedor {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

#tablaReservas,
#tablaConsultas,
#tablaUsuarios {
    width: 100%;
    border-collapse: collapse;
}

#tablaReservas th,
#tablaReservas td,
#tablaConsultas th,
#tablaConsultas td,
#tablaUsuarios th,
#tablaUsuarios td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

#tablaReservas th,
#tablaConsultas th,
#tablaUsuarios th {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#tablaReservas tr:last-child td,
#tablaConsultas tr:last-child td,
#tablaUsuarios tr:last-child td {
    border-bottom: none;
}

#tablaReservas tr:hover td,
#tablaConsultas tr:hover td,
#tablaUsuarios tr:hover td {
    background: var(--purple-soft);
}

.calculadora {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.calculadora::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

.calculadora h2 {
    margin-bottom: 12px;
    font-size: 1.9rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.calculadora > p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.7;
}

.campoCalculo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.valorFijo {
    padding: 14px 18px;
    background: var(--purple-soft);
    border: 1.5px solid var(--border-hover);
    border-radius: var(--radius-sm);
    color: var(--purple);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#resultadoFinanzas {
    margin-top: 28px;
    background: var(--purple-soft);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    padding: 24px;
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.finanzaFila {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.finanzaFila:last-child {
    border-bottom: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
    padding-top: 16px;
    margin-top: 6px;
    border-top: 2px solid var(--purple);
}

#warningAds {
    margin-top: 18px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-sm);
    color: #92400e;
    font-weight: 600;
    display: none;
    animation: pulse 2s infinite;
}

footer {
    background: linear-gradient(135deg, #0a0a12 0%, #1a1025 100%);
    border-top: 1px solid var(--border);
    padding: 20px 5%;
    color: var(--text-muted);
}

.loginPage {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.loginCard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.loginCard::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

.loginCard h2 {
    color: var(--text);
    margin-bottom: 24px;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
}

.toggleForm {
    text-align: center;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.toggleForm a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.toggleForm a:hover {
    text-decoration: underline;
}

.sesionIndicador {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: 12px;
}

.sesionNombre {
    color: var(--purple-light);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btnCerrarSesion {
    padding: 6px 14px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: "Oswald", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btnCerrarSesion:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.footerContenido {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footerSeccion {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footerSeccion h4 {
    color: var(--purple-light);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footerSeccion p {
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
}

.footerContacto p {
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
    line-height: 1.5;
}

.footerCopyright {
    text-align: center;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footerCopyright p {
    color: rgba(255,255,255,0.25);
    font-size: 0.8rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        height: auto;
        padding: 12px 3%;
    }

    .headerLogo,
    header > a:first-child {
        gap: 8px;
    }

    .headerLogo h1,
    header > a > h1,
    header > h1 {
        padding-left: 0;
    }

    header > nav {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    header > nav > ul {
        justify-content: center;
        gap: 1.2rem;
        flex-wrap: wrap;
    }

    main {
        padding: 3% 4%;
    }

    .carruselContenedor {
        height: 400px;
    }

    .carruselTexto h2 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .carruselTexto p {
        font-size: 1.1rem;
    }

    .carruselFlecha {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .beneficios {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .equipoGrid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .galeriaGrid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .galeria3col {
        grid-template-columns: 1fr;
    }

    .contactoLayout {
        flex-direction: column;
        gap: 32px;
    }

    .footerContenido {
        flex-direction: column;
        text-align: center;
    }

    .footerSeccion {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: row;
        flex-wrap: wrap;
        text-align: center;
        padding: 10px 4%;
    }

    .headerLogo img,
    header > a > img,
    header > img {
        width: 34px;
        height: 34px;
    }

    .headerLogo h1,
    header > a > h1,
    header > h1 {
        font-size: 1.15rem;
    }

    header > nav {
        width: 100%;
    }

    header > nav > ul {
        gap: 0.8rem;
    }

    header > nav > ul > li > a {
        font-size: 0.85rem;
    }

    main {
        padding: 4% 3%;
    }

    .carruselContenedor {
        height: 340px;
        border-radius: var(--radius-sm);
    }

    .carruselTexto h2 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .carruselTexto p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .carruselFlecha {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .carruselIzq {
        left: 10px;
    }

    .carruselDer {
        right: 10px;
    }

    .carruselPunto {
        width: 9px;
        height: 9px;
    }

    .btnCta {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .beneficios {
        grid-template-columns: 1fr;
    }

    .equipoGrid {
        grid-template-columns: 1fr;
    }

    .galeriaGrid {
        grid-template-columns: 1fr;
    }

    .galeriaTitulo {
        font-size: 1.4rem;
    }

    .servicioCard,
    .cotizador,
    .calculadora {
        padding: 24px;
    }

    .contactoLayout {
        gap: 24px;
    }

    footer {
        padding: 16px 4%;
    }
}

/* =============================================
   CHATBOT - Estilos generados con IA
   A partir de aqui comienzan los estilos del chatbot.
   ============================================= */

.chatBtn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-purple);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(108, 60, 224, 0.35);
}

.chatBtn svg {
    width: 24px;
    height: 24px;
}

.chatBadge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    display: none;
    border: 2px solid white;
    animation: chatBadgePulse 2s ease-in-out infinite;
}

.chatVentana {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 360px;
    max-height: 480px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatVentana.chatAbierto {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatHeader {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: white;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.chatCerrar {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: var(--transition);
}

.chatCerrar:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.chatMensajes {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    min-height: 200px;
    background: #f8f6fc;
}

.chatMensajes::-webkit-scrollbar {
    width: 5px;
}

.chatMensajes::-webkit-scrollbar-track {
    background: transparent;
}

.chatMensajes::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.chatBurbuja {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-line;
    animation: chatBurbujaIn 0.25s ease-out;
}

.chatBurbuja.usuario {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: white;
    border-bottom-right-radius: 4px;
}

.chatBurbuja.bot {
    align-self: flex-start;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chatSugerencias {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.chatSugerencia {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    color: var(--purple);
    font-size: 0.72rem;
    font-family: "Oswald", sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.chatSugerencia:hover {
    background: var(--purple-soft);
    border-color: var(--purple-light);
}

.chatInput {
    display: flex;
    padding: 12px;
    border-top: 1px solid var(--border);
    gap: 8px;
    background: var(--surface);
}

.chatInput input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.82rem;
    font-family: "Oswald", sans-serif;
    outline: none;
    transition: var(--transition);
}

.chatInput input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px var(--purple-glow);
}

.chatInput button {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.82rem;
    font-family: "Oswald", sans-serif;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.chatInput button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@keyframes chatBurbujaIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chatBadgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

@media (max-width: 768px) {
    .chatVentana {
        width: 320px;
        max-height: 420px;
    }
}

@media (max-width: 480px) {
    .chatBtn {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }

    .chatBtn svg {
        width: 20px;
        height: 20px;
    }

    .chatVentana {
        width: calc(100% - 32px);
        right: 16px;
        bottom: 80px;
        max-height: 70vh;
    }

    .chatMensajes {
        max-height: 50vh;
    }
}
