:root {
    --primary: #00ced1;
    --primary-dark: #008b8b;
    --secondary: #0f172a;
    --accent: #2dd4bf;
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;   /* Contraste profundo y elegante */
    --text-muted: #334155;  /* Slate oscuro altamente legible en exteriores */
    --glass-border: rgba(0, 0, 0, 0.05);
    --transition: all 0.25s 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 {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrado horizontal forzado */
    min-height: 100vh;
    background-color: var(--secondary); /* Usar el color secundario como fondo */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: opacity 0.15s ease;
}

/* 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-container {
    width: 95%;
    max-width: 450px;
    margin: 2rem auto;
    animation: fadeIn 0.8s ease-out;
    background: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 24px;
    overflow: hidden; /* Crucial para que el header negro no se salga */
    position: relative;
}

.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: 35px;
    width: auto;
    max-width: 150px;
    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-wrapper {
    text-align: center;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem; /* Añadimos margen lateral */
    position: relative;
    z-index: 20; /* Refuerzo extra */
}

.profile-img-container {
    width: 200px !important; /* Tamaño XXL para que se note el cambio */
    height: 200px !important;
    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 1.5rem; /* Añadimos margen lateral */
}

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

.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; /* Margen lateral para que no pegue a los bordes */
    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 var(--accent-glow, 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 {
    position: relative;
    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);
}

.modal-close-top {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    color: #64748b;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    z-index: 10;
}

.modal-close-top:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.btn-close-modal {
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
    transition: var(--transition);
}

.btn-close-modal:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.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;
    margin: 0 1.5rem 2rem 1.5rem; /* Margen lateral */
}

.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(--accent);
    font-size: 1.2rem;
}

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

.social-link, .social-item {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.social-link:hover, .social-item: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; 
    padding-top: 10px;
}
.header-banner { 
    width: 100%;
    height: 100px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 1.5rem; 
    position: relative;
    z-index: 100;
    background: var(--header-bg, #000000); /* Dinámico */
    box-sizing: border-box;
}
.header-logo { display: flex; align-items: center; flex: 1; }
.header-logo img { height: 35px; width: auto; max-width: 150px; object-fit: contain; opacity: 1; }
.share-btn { 
    width: 50px; height: 50px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; background: var(--accent, rgba(255,255,255,0.15)) !important; 
    backdrop-filter: blur(5px); color: white !important; cursor: pointer;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* LOS ESTILOS DE LOS MODELOS SE CARGAN DINÁMICAMENTE DESDE LA CARPETA /models/ */
