/* ============================================
   VARGAS DOOR - Estilos Compartidos
   ============================================ */

/* Variables CSS */
:root {
    --primary-dark: #1F2937;
    --accent-gold: #F59E0B;
    --accent-blue: #1D4ED8;
    --white: #ffffff;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --green-500: #10B981;
    --green-600: #059669;
    --yellow-600: #D97706;
    --transition: all 0.3s ease;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-50);
    color: var(--primary-dark);
    line-height: 1.6;
}

/* Header y Navegación */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background-color: var(--accent-gold);
    padding: 0.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.top-bar svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Navegación Principal */
nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 50px;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Menú Desktop */
.desktop-menu {
    display: none;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.desktop-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    position: relative;
}

.desktop-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

.desktop-menu a:hover::after,
.desktop-menu a.active::after {
    width: 80%;
}

.desktop-menu a:hover,
.desktop-menu a.active {
    color: var(--accent-gold);
}

/* Botón WhatsApp */
.whatsapp-btn {
    background-color: var(--green-500);
    color: var(--white);
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background-color: var(--green-600);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Menú Móvil */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    list-style: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu li {
    margin: 0.5rem 0;
}

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--accent-gold);
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}

/* Hero Section */
.hero-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(31, 41, 55, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

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

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--accent-gold);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.6;
}

.cta-button {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--yellow-600);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

/* Secciones */
.section {
    padding: 4rem 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.section-title span {
    color: var(--accent-gold);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Formularios */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 3rem 1rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section h3 span {
    color: var(--accent-gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    color: var(--white);
    font-size: 0.875rem;
}

/* Utilidades */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.bg-white { background-color: var(--white); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-primary-dark { background-color: var(--primary-dark); }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* Responsive */
@media (min-width: 640px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 1rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 4rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.alert-error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #EF4444;
}

