/* === VARIABLES & RESET === */
:root {
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-100: #dbeafe;
    --gold-500: #d4af37;
    --gold-600: #b4941f;
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --green-100: #dcfce7;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-700: #15803d;

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--navy-900);
    background-color: var(--slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* === UTILITIES === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden {
    display: none !important;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold-500); }
.text-navy { color: var(--navy-900); }
.text-white { color: var(--white); }
.bg-navy { background-color: var(--navy-900); }
.bg-white { background-color: var(--white); }
.bg-slate { background-color: var(--slate-50); }

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-top: 0.5rem;
}

.section-subtitle {
    color: var(--gold-600);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 40;
    background-color: transparent;
    padding: 1.35rem 0; /* Reducido de 1.5rem a 1.35rem (10% menos) */
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(1); /* Convierte el SVG a blanco para fondos oscuros */
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.05);
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--white);
    transition: color 0.3s;
}

.nav-logo span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-300);
    display: block;
    transition: color 0.3s;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-200);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: var(--gold-500);
}

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

/* Navbar Scrolled State */
.navbar.scrolled {
    background-color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.9rem 0; /* Reducido de 1rem a 0.9rem (10% menos) */
}

.navbar.scrolled .nav-logo h1 { color: var(--navy-900); }
.navbar.scrolled .nav-logo span { color: var(--gray-600); }
.navbar.scrolled .nav-link { color: var(--navy-900); }
.navbar.scrolled .nav-link:hover { color: var(--gold-600); }
.navbar.scrolled .mobile-menu-btn { color: var(--navy-900); }
.navbar.scrolled .nav-logo-img { 
    filter: brightness(0) invert(0); /* Convierte el SVG a negro para fondos claros */
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--navy-900);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.mobile-link {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--navy-800);
}

.mobile-link:hover { color: var(--gold-500); }

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { height: 90vh; }
    .hero-content { padding: 0 1.25rem; }
    .hero-title { font-size: 2.1rem; }
    .hero-desc { font-size: 1rem; margin-bottom: 2rem; }
    .hero-social-proof { grid-template-columns: 1fr; }
    .navbar { padding: 1.2rem 0; }
    .hero { padding-top: 120px; }
    .btn-outline { margin-left: 0; margin-top: 1rem; }
    .nav-logo-img { height: 48px; }
    .nav-logo h1 { font-size: 1.2rem; }
    .nav-logo span { font-size: 0.65rem; }
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh; /* Asegura que ocupe al menos el 100% de la altura de la ventana */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy-900);
    overflow: hidden;
    text-align: center;
    color: var(--white);
    padding-top: calc(var(--header-height) + 1.5rem);
    margin-top: 0;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 150px; /* Aumenta el padding para móviles */
        min-height: 100vh;
        height: auto;
    }
}

/* Fix específico para dispositivos Android/Samsung */
@media (max-width: 768px) and (max-height: 1000px) {
    .hero {
        padding-top: 180px !important;
        min-height: -webkit-fill-available;
        min-height: 100vh;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-tag {
    color: var(--gold-500);
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title { font-size: 4rem; }
}

.hero-desc {
    color: var(--gray-300);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-social-proof {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.hero-proof-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    text-align: left;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-proof-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.6);
}

.hero-proof-quote {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold-500);
}

.hero-proof-card p {
    color: var(--white);
    font-size: 0.95rem;
    margin: 0.5rem 0 0.75rem;
}

.hero-proof-author {
    font-size: 0.8rem;
    color: var(--gray-300);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    border-radius: 2px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--gold-600);
    color: var(--white);
    border: none;
}

.btn-primary:hover { background-color: var(--gold-500); }

.btn-outline {
    border: 1px solid var(--white);
    color: var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--navy-900);
}

/* === ABOUT SECTION === */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 768px) {
    .about-grid { flex-direction: row; align-items: center; }
    .about-image-col { width: 50%; }
    .about-text-col { width: 50%; }
}

.about-image-wrapper {
    position: relative;
}

.about-frame-top {
    position: absolute;
    top: -1rem; left: -1rem;
    width: 6rem; height: 6rem;
    border-top: 4px solid var(--gold-500);
    border-left: 4px solid var(--gold-500);
}

.about-frame-bottom {
    position: absolute;
    bottom: -1rem; right: -1rem;
    width: 6rem; height: 6rem;
    border-bottom: 4px solid var(--navy-900);
    border-right: 4px solid var(--navy-900);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-box {
    background-color: var(--slate-50);
    border: 1px solid var(--slate-100);
    padding: 1rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* === SERVICES === */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
    background-color: var(--navy-800);
    padding: 2rem;
    border-radius: 2px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-0.5rem);
    border-color: var(--gold-500);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--navy-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    transition: background-color 0.3s;
}

.service-card:hover .service-icon { background-color: var(--gold-500); }

/* === TESTIMONIALS & TRAYECTORIA === */
.grid-2 { display: grid; gap: 3rem; }
.grid-3 { display: grid; gap: 2rem; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
    background-color: var(--white);
    padding: 2rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.border-l-navy { border-left: 4px solid var(--navy-900); }
.border-l-gold { border-left: 4px solid var(--gold-500); }

.testimonial-quote {
    color: var(--gold-500);
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-featured {
    border: 1px solid var(--gold-500);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.15);
    position: relative;
}

.testimonial-featured::after {
    content: "Destacado";
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--gold-500);
    color: var(--navy-900);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
}

/* === FAQ === */
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.faq-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--slate-50);
    border: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--navy-900);
}

.faq-btn:hover { background-color: var(--slate-100); }

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--white);
}

.faq-body {
    padding: 1.5rem;
    color: var(--gray-600);
    border-top: 1px solid var(--gray-100);
}

/* === CONTACT FORM === */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .contact-container { flex-direction: row; }
    .contact-info { width: 50%; }
    .contact-form-wrapper { width: 50%; }
}

.form-group { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 2px;
    font-family: var(--font-sans);
}

.form-input:focus {
    outline: none;
    border-color: var(--navy-900);
}

.input-error {
    border-color: var(--red-500) !important;
}

.btn-submit {
    width: 100%;
    background-color: var(--navy-900);
    color: var(--white);
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn-submit:hover { background-color: var(--navy-800); }
.btn-submit:disabled { opacity: 0.5; }

/* === FOOTER === */
.footer {
    background-color: var(--navy-900);
    color: var(--white);
    padding: 3rem 0;
    border-top: 1px solid var(--navy-800);
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content { flex-direction: row; }
}

/* === CHATBOT === */
.chatbot-wrapper {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: var(--font-sans);
}

.chat-window {
    width: 20rem;
    height: 550px;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
    animation: fadeIn 0.3s ease;
}

@media (min-width: 768px) {
    .chat-window { width: 24rem; }
}

.chat-header-inner {
    background-color: var(--navy-900);
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 20;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar-container {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-title {
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    color: var(--white);
}

.chat-status-badge {
    font-size: 0.625rem;
    color: var(--green-400);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    width: fit-content;
    margin-top: 0.125rem;
}

.chat-status-dot {
    width: 0.375rem;
    height: 0.375rem;
    background-color: var(--green-400);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.chat-close-btn {
    color: var(--gray-400);
    transition: color 0.3s;
    padding: 0.5rem;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
}

.chat-close-btn:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

.chat-clear-btn {
    color: var(--gray-400);
    background: none; border: none; cursor: pointer;
    padding: 0.5rem; transition: color 0.3s;
}
.chat-clear-btn:hover { color: var(--red-500); }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--slate-50);
}

.chat-message {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease;
}

.chat-message.user { align-items: flex-end; }
.chat-message.bot { align-items: flex-start; }

.chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    max-width: 85%;
    font-size: 0.9rem;
}

.chat-bubble-user {
    background-color: var(--navy-900);
    color: var(--white);
    border-bottom-right-radius: 0.25rem;
}

.chat-bubble-bot {
    background-color: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    border-bottom-left-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chat-option-btn {
    background-color: var(--white);
    border: 1px solid var(--gold-500);
    color: var(--navy-900);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-option-btn:hover {
    background-color: var(--gold-500);
    color: var(--white);
}

.chat-input-container {
    padding: 0.75rem;
    background-color: var(--white);
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 0.5rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 20;
}

.chat-input-field {
    flex: 1;
    background-color: var(--slate-50);
    border: 1px solid var(--gray-200);
    border-radius: 9999px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.chat-input-field:focus {
    outline: none;
    border-color: var(--navy-900);
    box-shadow: 0 0 0 1px var(--navy-900);
}

.chat-send-btn {
    background-color: var(--navy-900);
    color: var(--white);
    padding: 0.625rem;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-send-btn:hover {
    background-color: var(--navy-800);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-open-btn {
    background-color: var(--navy-900);
    color: var(--white);
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: none;
    cursor: pointer;
}

.chat-open-btn:hover {
    transform: scale(1.05) rotate(3deg);
    background-color: var(--navy-800);
}

.chat-notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 0.875rem;
    height: 0.875rem;
    background-color: var(--red-500);
    border-radius: 50%;
    border: 2px solid var(--white);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.chat-tooltip {
    position: absolute;
    right: 100%;
    margin-right: 1rem;
    background-color: var(--white);
    color: var(--navy-900);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    pointer-events: none;
}

.chat-open-btn:hover .chat-tooltip {
    opacity: 1;
}

.chat-timestamp {
    font-size: 10px;
    color: var(--gray-400);
    margin-top: 4px;
    padding: 0 4px;
    opacity: 0.7;
}

.chat-typing {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border-bottom-left-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chat-typing-dot {
    width: 0.375rem;
    height: 0.375rem;
    background-color: var(--gray-400);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.chat-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

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

@keyframes whatsappPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* === ADMIN PANEL === */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    border-top: 4px solid var(--gold-500);
}

.admin-header {
    background-color: var(--navy-900);
    color: var(--white);
    padding: 1rem 0;
}

.admin-table-container {
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    background-color: var(--slate-50);
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray-500);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.admin-table th:hover {
    background-color: var(--gray-200);
    color: var(--navy-900);
}

.admin-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.chat-window.closing {
    animation: fadeOut 0.3s ease forwards;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === HELPER CLASSES (Replaces Inline Styles) === */
.about-img-styled {
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
    object-fit: cover;
    background: transparent;
}

.about-h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1rem;
}
.about-p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}
.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-transform: uppercase;
}
.trayectoria-h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.trayectoria-icon-gold {
    color: var(--gold-500);
    margin-right: 0.75rem;
}
.trayectoria-icon-navy {
    color: var(--navy-900);
    margin-right: 0.75rem;
}
.trayectoria-list {
    color: var(--gray-700);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.service-h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.service-p {
    color: var(--gray-400);
    font-size: 0.875rem;
}
.testimonial-p {
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: 1.5rem;
}
.testimonial-author-box {
    display: flex;
    align-items: center;
}
.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--navy-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-900);
    font-weight: 700;
}
.testimonial-info {
    margin-left: 0.75rem;
}
.testimonial-name {
    font-weight: 700;
    font-size: 0.875rem;
}
.testimonial-case {
    font-size: 0.75rem;
    color: var(--gray-500);
}
.container-narrow {
    max-width: 800px;
}
.faq-toggle-icon {
    color: var(--gold-600);
    font-size: 1.25rem;
}
.contact-h2-margin {
    margin-bottom: 2rem;
}
.contact-p {
    color: var(--gray-600);
    margin-bottom: 2.5rem;
}
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-map {
    margin-top: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.contact-map-link {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 260px;
    border: 0;
    display: block;
}
.contact-item {
    display: flex;
    align-items: flex-start;
}
.contact-icon-box {
    width: 3rem;
    height: 3rem;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.contact-item-text {
    margin-left: 1.5rem;
}
.contact-item-title {
    font-weight: 700;
}
.contact-item-value {
    color: var(--gray-600);
}
.form-h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.form-success-msg {
    background-color: var(--green-100);
    color: var(--green-700);
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}
.form-label-styled {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.footer-center {
    text-align: center;
}
.footer-brand-h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.footer-desc {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
.footer-links-row {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-400);
}
.footer-link-hover:hover {
    color: var(--gold-500);
}
.footer-copy {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-500);
}
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    background-color: var(--green-500);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    animation: none;
}
.whatsapp-label {
    max-width: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    white-space: nowrap;
    margin-left: 0;
}
.whatsapp-float:hover .whatsapp-label {
    max-width: 20rem;
    margin-left: 0.75rem;
}
.chat-bg-custom {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

/* === ADMIN PANEL UTILITIES === */
.admin-login-header {
    margin-bottom: 2rem;
    text-align: center;
}
.admin-login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-900);
}
.admin-login-subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
.admin-error-box {
    background-color: #fef2f2;
    color: var(--red-600);
    padding: 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border: 1px solid #fecaca;
}
.admin-form-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.btn-rounded {
    border-radius: 0.25rem;
}
.admin-back-link {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    text-align: center;
}
.dashboard-container {
    min-height: 100vh;
    background-color: var(--slate-50);
}
.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-brand-title {
    font-weight: 700;
    font-size: 1.25rem;
}
.admin-brand-subtitle {
    font-size: 0.75rem;
    color: var(--gold-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.admin-user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.admin-user-email {
    font-size: 0.875rem;
    color: var(--gray-300);
}
.admin-site-link {
    font-size: 0.875rem;
    color: var(--gray-400);
}
.btn-logout {
    background-color: var(--red-600);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
}
.admin-main {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
.admin-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.admin-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-800);
}
.btn-refresh {
    color: var(--navy-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
}
.loader-wrapper {
    text-align: center;
    padding: 5rem 0;
}
.loader-spinner {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border-bottom: 2px solid var(--navy-900);
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}
.table-scroll {
    overflow-x: auto;
}
.empty-message {
    padding: 2.5rem;
    text-align: center;
    color: var(--gray-500);
}

/* === ADMIN TABLE DYNAMIC STYLES === */
.admin-table-row {
    transition: background-color 0.2s ease;
}
.admin-table-row:hover {
    background-color: var(--slate-50);
}
.admin-row-unread {
    background-color: #eff6ff; /* Azul muy claro para mensajes nuevos */
}

.status-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity 0.2s;
}
.status-btn:hover { opacity: 0.8; }

.status-btn-unread {
    background-color: #fef9c3;
    color: #a16207;
    border-color: #fde047;
}
.status-btn-read {
    background-color: var(--green-100);
    color: var(--green-700);
    border-color: #86efac;
}

.cell-nowrap { white-space: nowrap; }
.cell-primary { font-weight: 700; color: var(--navy-900); }
.cell-secondary { font-size: 0.75rem; }
.cell-muted { font-size: 0.75rem; color: var(--gray-400); }
.cell-truncate {
    max-width: 20rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-delete {
    background-color: transparent;
    color: var(--red-500);
    border: 1px solid var(--red-500);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-delete:hover {
    background-color: var(--red-500);
    color: var(--white);
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    outline: none;
    min-width: 250px;
    font-family: var(--font-sans);
}
.search-input:focus {
    border-color: var(--navy-900);
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    outline: none;
    font-family: var(--font-sans);
    background-color: var(--white);
    cursor: pointer;
}
.filter-select:focus {
    border-color: var(--navy-900);
}

/* === TOAST NOTIFICATION === */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--navy-900);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    color: var(--green-400);
    width: 1.25rem;
    height: 1.25rem;
}

.btn-export {
    background-color: var(--green-700);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-export:hover {
    background-color: var(--green-500);
}

/* === ACTION BUTTONS & MODAL === */
.btn-copy {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.btn-copy:hover { color: var(--gold-500); }

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-view {
    background-color: transparent;
    color: var(--navy-900);
    border: 1px solid var(--navy-900);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-view:hover {
    background-color: var(--navy-900);
    color: var(--white);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}
.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 600px;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}
.modal-header {
    background-color: var(--navy-900);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-size: 1.125rem;
    font-weight: 700;
}
.modal-close {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: var(--white); }
.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}
.modal-row { margin-bottom: 1rem; }
.modal-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray-500);
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.modal-text {
    color: var(--navy-900);
    font-size: 1rem;
    white-space: pre-wrap;
}

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

/* === KPI CARDS === */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.kpi-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}
.kpi-title { font-size: 0.875rem; color: var(--gray-500); text-transform: uppercase; font-weight: 700; }
.kpi-value { font-size: 2rem; font-weight: 700; color: var(--navy-900); margin-top: 0.5rem; }

/* === PAGINATION === */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    background-color: var(--slate-50);
}
.btn-page {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}
.btn-page:disabled { opacity: 0.5; cursor: not-allowed; }

/* === BULK ACTIONS === */
.bulk-actions-bar {
    background-color: var(--navy-100);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--navy-900);
    font-weight: 600;
}
.bulk-btn {
    background: var(--white);
    border: 1px solid var(--navy-900);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 0.5rem;
    font-weight: 700;
}
.bulk-btn:hover { background-color: var(--navy-900); color: var(--white); }

/* === DARK MODE === */
body.dark-mode { background-color: #0f172a; color: #f1f5f9; }
body.dark-mode .admin-table-container, body.dark-mode .login-box, body.dark-mode .kpi-card, body.dark-mode .modal-content, body.dark-mode .filter-select, body.dark-mode .search-input, body.dark-mode .pagination-controls {
    background-color: #1e293b; border-color: #334155; color: #f1f5f9;
}
body.dark-mode .admin-table th { background-color: #0f172a; color: #94a3b8; }
body.dark-mode .admin-table td { border-bottom-color: #334155; color: #cbd5e1; }
body.dark-mode .admin-table-row:hover { background-color: #334155; }
body.dark-mode .cell-primary, body.dark-mode .kpi-value, body.dark-mode .admin-login-title, body.dark-mode .modal-text { color: #f1f5f9; }
body.dark-mode .faq-btn { background-color: #1e293b; color: #f1f5f9; border-color: #334155; }
body.dark-mode .faq-content { background-color: #0f172a; }

/* === NOTES === */
.notes-area {
    width: 100%; margin-top: 0.5rem; padding: 0.5rem;
    border: 1px solid var(--gray-300); border-radius: 0.25rem;
    font-family: var(--font-sans); min-height: 80px;
}

/* === CHART === */
.chart-container {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
    height: 350px;
    position: relative;
}

body.dark-mode .chart-container {
    background-color: #1e293b;
    border-color: #334155;
}

/* === CUSTOM CONFIRMATION MODAL === */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.confirm-modal {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-200);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.confirm-modal-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

.confirm-modal-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy-900);
    margin: 0;
}

.confirm-modal-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.confirm-modal-text {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.confirm-modal-footer {
    padding: 1rem 1.5rem;
    background-color: var(--slate-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.confirm-modal-footer .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    min-width: 80px;
}

.confirm-modal-footer .btn-primary {
    background-color: var(--navy-900);
    color: var(--white);
    border-color: var(--navy-900);
}

.confirm-modal-footer .btn-primary:hover {
    background-color: var(--navy-800);
    border-color: var(--navy-800);
}

.confirm-modal-footer .btn-outline {
    background-color: transparent;
    color: var(--navy-900);
    border-color: var(--gray-300);
}

.confirm-modal-footer .btn-outline:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Dark mode for modal */
body.dark-mode .confirm-modal {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .confirm-modal-header {
    border-bottom-color: #334155;
}

body.dark-mode .confirm-modal-title {
    color: #f1f5f9;
}

body.dark-mode .confirm-modal-text {
    color: #cbd5e1;
}

body.dark-mode .confirm-modal-footer {
    background-color: #0f172a;
    border-top-color: #334155;
}

body.dark-mode .confirm-modal-footer .btn-outline {
    color: #f1f5f9;
    border-color: #475569;
}

body.dark-mode .confirm-modal-footer .btn-outline:hover {
    background-color: #334155;
    border-color: #64748b;
}