:root {
    --primary: #00ced1;
    --primary-dark: #008b8b;
    --secondary: #0f172a;
    --accent: #2dd4bf;
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-border: rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--secondary); /* Usar el color secundario como fondo */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism to Clean Cards */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 245, 255, 0.3);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.feature-card {
    padding: 3rem;
    text-align: left;
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn 1s ease forwards;
}

/* Card Styles */
.card-container {
    max-width: 450px;
    margin: 2rem auto;
    padding: 1rem;
    animation: fadeIn 0.8s ease-out;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.header-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.profile-section {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 20;
    margin-top: 60px; /* Bajar la imagen del perfil */
}

.profile-img-container {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    border: 3px solid var(--primary);
    padding: 5px;
    background: var(--bg-dark);
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.card-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-info h2 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.card-info .role {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.company-name {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-call {
    background: #3b82f6;
    color: white;
}

.btn-save {
    background: var(--primary);
    color: var(--bg-dark);
}

.bio-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    text-align: left;
}

/* Modal QR */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.qr-modal img {
    width: 250px;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.qr-close {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
}

.btn-qr-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,245,255,0.4);
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
}

.btn-qr-float:hover {
    transform: scale(1.1);
}

/* Form Styles */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    max-width: 400px;
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.booking-form h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.input-group input, .input-group textarea, input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #1e293b !important; /* Forzar color oscuro */
    background-color: #ffffff !important; /* Forzar fondo blanco */
    transition: 0.3s;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.btn-submit {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 1rem;
}

.success-message {
    display: none;
    text-align: center;
    padding: 2rem;
}

.success-message i {
    font-size: 3rem;
    color: #25D366;
    margin-bottom: 1rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-link {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* MODELO 2: EDITORIAL MODERNO (REDISEÑO) */
body.model_2 {
    background-color: #ffffff;
}

body.model_2 .card-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

body.model_2 .profile-img-container {
    width: 100%;
    height: 45vh; /* 45% de la pantalla para la foto */
    border-radius: 0;
    margin-bottom: 0;
    position: relative;
}

body.model_2 .profile-img-container img {
    border-radius: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

body.model_2 .card-info {
    padding: 2.5rem 2rem;
    text-align: left;
    margin-top: -40px; /* Superposición moderna */
    background: white;
    border-radius: 40px 40px 0 0;
    position: relative;
}

body.model_2 .card-info h2 {
    font-size: 2.8rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: #000;
}

body.model_2 .card-info .role {
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

body.model_2 .actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 2rem;
}

body.model_2 .btn-action {
    height: 60px;
    border-radius: 15px;
    font-weight: 700;
}

body.model_2 .contact-section {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

body.model_2 .contact-item {
    background: #f8fafc;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem;
    gap: 0.5rem;
    border-radius: 20px;
}

/* =========================================
   SISTEMA DE DISEÑO TAPEVI (PREMIUM REBOOT)
   ========================================= */

/* ELEMENTOS BASE REFINADOS */
.visual-master { width: 100%; position: relative; }
.header-banner { 
    min-height: 120px; /* Aumentado para logos grandes */
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0.5rem 1.2rem; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 10; 
    pointer-events: none;
}
.header-logo { width: 100%; text-align: center; }
.header-logo img { height: 160px; width: auto; object-fit: contain; opacity: 0.6; }
.share-btn { 
    width: 35px; height: 35px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; background: rgba(255,255,255,0.2); 
    backdrop-filter: blur(5px); color: white; cursor: pointer;
    font-size: 0.9rem;
}

/* MODELO 1: VIP GLASS (Compacto) */
body.model_1 .card-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    margin: 1rem;
    overflow: hidden;
}
body.model_1 .header-banner { background: transparent; color: var(--primary); }
body.model_1 .share-btn { background: rgba(0,0,0,0.05); color: var(--primary); }
body.model_1 .profile-wrapper { padding-top: 3.5rem; } /* Menos espacio arriba */
body.model_1 .profile-img-container {
    width: 120px; height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    border: 4px solid var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* MODELO 2: EDITORIAL ELITE (Sin Interrupciones) */
body.model_2 .visual-master { height: 45vh; }
body.model_2 .header-banner { background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent); }
body.model_2 .header-logo { filter: brightness(0) invert(1); }
body.model_2 .share-btn { background: rgba(255,255,255,0.2); }

body.model_2 .card-info {
    padding: 2rem 1.5rem;
    margin-top: -30px;
    border-radius: 30px 30px 0 0;
}
body.model_2 .card-info h2 { font-size: 2.2rem; margin-bottom: 0.2rem; }

/* MODELO 3: EXECUTIVE MASTERY (Eficiente) */
body.model_3 .card-container { margin: 1rem auto; box-shadow: 0 15px 30px rgba(0,0,0,0.08); overflow: visible; }
body.model_3 .header-banner { height: 100px; background: #0f172a; align-items: flex-start; padding-top: 1rem; border-radius: 20px 20px 0 0; }

/* LOGO SIN FONDO BLANCO (INTEGRACIÓN TOTAL) */
body.model_3 .header-logo { 
    background: transparent !important; 
    border: none !important;
}
body.model_3 .header-logo img { 
    filter: invert(1); /* Volvemos el logo blanco */
    mix-blend-mode: screen; /* Eliminamos cualquier residuo oscuro del fondo de la imagen */
    max-height: 25px; 
    background: transparent !important; 
}

body.model_3 .share-btn { background: rgba(255,255,255,0.1); }

body.model_3 .profile-img-container {
    width: 110px !important; height: 110px !important;
    top: -55px;
}
body.model_3 .card-info { padding: 65px 1.5rem 1.5rem 1.5rem; }
body.model_3 .card-info h2 { font-size: 1.6rem; color: #1e293b; }

body.model_3 .card-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
}

body.model_3 .contact-section {
    padding: 1rem 2rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

body.model_3 .contact-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    transition: 0.3s;
}
