/*
Theme Name: Opencubo México
Theme URI: https://opencubemexico.com
Author: Opencubo México
Author URI: https://opencubemexico.com
Description: Tema personalizado para Opencubo México - Distribución Exclusiva de Marcas Líderes en cosmética, bienestar y cuidado personal.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: opencubo-mexico
Tags: one-page, custom-logo, featured-images
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

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

/* ===== VARIABLES ===== */
:root {
    --primary-blue: #0d47a1;
    --primary-dark: #1a237e;
    --primary-light: #e3f2fd;
    --accent-yellow: #ffc107;
    --accent-yellow-hover: #ffb300;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #757575;
    --text-dark: #212121;
    --text-light: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.top-bar-left a:hover {
    color: var(--accent-yellow);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== BRAND BAR ===== */
.brand-bar {
    background: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.brand-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.brand-bar-label {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
}

.brand-bar img {
    height: 35px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--transition);
}

.brand-bar img:hover {
    opacity: 1;
}

/* ===== HEADER / NAVIGATION ===== */
.site-header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    height: 45px;
    width: auto;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
}

.site-logo-text .name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

.site-logo-text .subtitle {
    font-size: 12px;
    color: var(--gray);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--primary-blue);
    transition: var(--transition);
    text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary-dark);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-dark);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--primary-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/valenvit-logo.png') no-repeat 5% 30%,
                url('img/byphasse-logo.png') no-repeat 85% 20%,
                url('img/happy-sex-logo.jpeg') no-repeat 80% 70%,
                url('img/bad-skin-logo.png') no-repeat 85% 50%,
                url('img/daen-logo.jpg') no-repeat 10% 70%;
    background-size: 120px, 100px, 120px, 100px, 130px;
    opacity: 0.15;
    pointer-events: none;
}

.hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-section h1 span {
    color: var(--primary-blue);
    font-style: italic;
}

.hero-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-dark);
    margin: 0 auto 20px;
}

.hero-section p {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.btn-primary {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-yellow-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== SECTION COMMON ===== */
.section {
    padding: 80px 0;
}

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

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-style: italic;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-dark);
    margin: 0 auto 40px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    padding-right: 20px;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.about-text .divider {
    width: 50px;
    height: 4px;
    background: var(--primary-dark);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
}

.about-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.about-card p {
    font-size: 14px;
    color: var(--gray);
}

/* ===== WHY US SECTION ===== */
.why-section {
    background: var(--gray-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.why-card {
    padding: 30px 20px;
}

.why-card .icon {
    width: 70px;
    height: 70px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.why-card .icon svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

.why-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--primary-dark);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-light);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 25px;
}

/* ===== BRANDS SECTION ===== */
.brands-section {
    background: var(--white);
}

.brands-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
}

.brands-categories {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.brands-categories button {
    padding: 10px 15px;
    border: none;
    background: none;
    text-align: left;
    font-size: 14px;
    color: var(--gray);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.brands-categories button:hover,
.brands-categories button.active {
    background: var(--accent-yellow);
    color: var(--text-dark);
    font-weight: 600;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.brand-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    padding: 25px;
    transition: var(--transition);
}

.brand-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.brand-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.brand-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.brand-card-header .tags {
    display: flex;
    gap: 5px;
}

.brand-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.brand-tag.category {
    background: #e3f2fd;
    color: var(--primary-blue);
}

.brand-tag.exclusive {
    background: #fff3e0;
    color: #e65100;
}

.brand-card p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.5;
}

.brand-card .brand-logo {
    text-align: center;
    padding: 15px;
    background: var(--gray-light);
    border-radius: var(--radius);
}

.brand-card .brand-logo img {
    max-height: 80px;
    margin: 0 auto;
    object-fit: contain;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card .icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.service-card .icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-blue);
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info {
    background: var(--primary-dark);
    border-radius: var(--radius);
    padding: 30px;
    color: var(--text-light);
}

.contact-info .flag {
    font-size: 24px;
    margin-bottom: 5px;
}

.contact-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-info .subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-detail svg {
    width: 18px;
    height: 18px;
    fill: var(--accent-yellow);
    flex-shrink: 0;
}

.contact-detail a {
    color: var(--text-light);
    transition: var(--transition);
}

.contact-detail a:hover {
    color: var(--accent-yellow);
}

.contact-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 15px;
    margin-top: 20px;
}

.contact-box h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--accent-yellow);
}

.contact-box p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-form-wrapper {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    padding: 30px;
}

.contact-form-wrapper h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-form-wrapper .form-subtitle {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 25px;
}

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

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

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

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-brand .logo img {
    height: 35px;
    border-radius: 4px;
}

.footer-brand .logo-text {
    font-size: 18px;
    font-weight: 700;
}

.footer-brand .logo-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand > p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-section ul li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.footer-section .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.footer-section .contact-item svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brands-layout {
        grid-template-columns: 1fr;
    }
    
    .brands-categories {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
    }
    
    .brand-bar {
        display: none;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
