/**
 * Vreo.net - Componentes
 * Header, Footer, Breadcrumbs, WhatsApp
 */

/* ===== HEADER ===== */
.site-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.logo { flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}
.nav-item { position: relative; }
.nav-item > a, .nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}
.nav-link-secondary {
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
}
.nav-link-secondary:hover {
    color: var(--primary);
}
.nav-item > a:hover,
.nav-item.active > a {
    color: var(--primary);
}
.nav-item.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 16px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
    display: block;
    padding: 10px 24px;
    color: var(--secondary);
    transition: background 0.3s;
}
.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}
.header-cta { 
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    align-items: center;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    margin: 5px 0;
    transition: 0.3s;
}

/* Ocultar CTA móvil en desktop */
.mobile-nav-cta {
    display: none;
}

/* ===== PHONE DISPLAY (Footer) ===== */
.phone-display {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    transition: color 0.3s;
}
.phone-display:hover {
    color: white;
}
.phone-main {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 1px;
}
.phone-vanity {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.phone-brand {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}
.phone-digits {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 2px;
}

/* Variante oscura (sobre fondo claro) */
.phone-display--dark {
    color: var(--secondary);
}
.phone-display--dark:hover {
    color: var(--primary);
}
.phone-display--dark .phone-digits {
    color: var(--secondary);
}

/* ===== HEADER PHONE ===== */
.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--secondary);
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}
.header-phone:hover {
    background: var(--bg-light);
    color: var(--primary);
}
.header-phone-icon {
    flex-shrink: 0;
    color: var(--primary);
}
.header-phone-number {
    display: flex;
    align-items: center;
    gap: 4px;
}
.header-phone-main {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}
.header-phone-vanity {
    font-size: 11px;
    line-height: 1.15;
    display: flex;
    flex-direction: column;
}
.header-phone-brand {
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 24px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}
.footer-column h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}
.footer-column ul {
    list-style: none;
}
.footer-column li {
    margin-bottom: 12px;
}
.footer-column a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}
.footer-column a:hover {
    color: white;
}
.contact-info {
    list-style: none;
}
.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.contact-info .icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
}
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background 0.3s;
}
.social-links a:hover {
    background: var(--primary);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}
.footer-links {
    display: flex;
    gap: 16px;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
}
.footer-links a:hover {
    color: white;
}
.separator {
    color: rgba(255,255,255,0.3);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    background: var(--bg-light);
    padding: 16px 0;
}
.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
}
.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}
.breadcrumb-list li:not(:last-child):after {
    content: "›";
    color: var(--text-light);
}
.breadcrumb-list a {
    color: var(--text-light);
}
.breadcrumb-list a:hover {
    color: var(--primary);
}
.breadcrumb-list li:last-child {
    color: var(--text);
    font-weight: 600;
}


/* ===== WHATSAPP WIDGET ===== */
.whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}
.whatsapp-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 14px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    text-decoration: none;
}
.whatsapp-button:hover {
    background: #20BA5A;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
    color: white;
}
.whatsapp-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.whatsapp-text {
    font-weight: 600;
    font-size: 15px;
}

@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-button {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .whatsapp-text {
        display: none;
    }
}



/* ===== CONTACT PAGE ===== */
.contacto-page .page-hero {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.9) 0%, rgba(0, 76, 153, 0.9) 100%),
                url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1600&q=80') center/cover;
    position: relative;
}

.contact-content-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-card {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.contact-form-card h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text);
}

.form-intro {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-input {
    resize: vertical;
}

.btn-full {
    width: 100%;
}

.form-message {
    display: none;
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 32px;
    color: var(--text);
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    stroke: white;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text);
}

.info-main {
    margin: 0 0 4px 0;
}

.info-main a {
    color: var(--primary);
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
}

.info-detail {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.demo-cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px;
    border-radius: 16px;
    margin-top: 32px;
    text-align: center;
    color: white;
}

.demo-cta-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: white;
}

.demo-cta-card p {
    margin-bottom: 24px;
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-card {
        padding: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
