/* ===== ESTILOS GLOBALES CLÁSICOS ===== */
:root {
    /* Paleta de colores conservadora */
    --primary-color: #003366;
    --secondary-color: #990000;
    --accent-color: #996633;
    --text-color: #333333;
    --light-text: #ffffff;
    --light-bg: #f5f5f5;
    --dark-bg: #222222;
    --border-color: #cccccc;
    --success-color: #006633;
    --warning-color: #cc9900;
    --error-color: #cc0000;
    --text-muted: #777777;
    
    /* Bordes y sombras */
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --border-radius: 3px;
    
    /* Transiciones */
    --transition-speed: 0.3s;
    
    /* Fuentes */
    --font-family-serif: 'Georgia', serif;
    --font-family-sans: 'Arial', sans-serif;

    /* Tamaños y espacios */
    --header-height: 80px;
    --container-width: 1200px;
    --section-spacing: 50px;
}

/* Reseteo y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-serif);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-serif);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border-color);
}

/* Contenedor */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Header - Versión simplificada */
.header {
    background-color: var(--primary-color);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 100;
}

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

.logo {
    max-width: 200px;
}

.logo img {
    border: none;
}

.main-nav {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--light-text);
    font-weight: bold;
    transition: background-color var(--transition-speed);
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--secondary-color);
    text-decoration: none;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 100;
    border: 1px solid var(--border-color);
    display: none;
}

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

.dropdown-menu a {
    color: var(--text-color);
    padding: 0.5rem 1rem;
    font-weight: normal;
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light-text);
    position: absolute;
    left: 0;
    transition: all var(--transition-speed);
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

/* Botones clásicos */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
    color: var(--light-text);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #770000;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Secciones */
section {
    padding: 4rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100px;
}

.divider span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding-top: 3rem;
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border-radius: 50%;
    transition: background-color var(--transition-speed);
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #cccccc;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--light-text);
    text-decoration: none;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-contact i {
    margin-right: 1rem;
    color: var(--secondary-color);
    min-width: 16px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal li {
    margin-left: 1.5rem;
}

.footer-legal a {
    color: #cccccc;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-hours {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}

.footer-hours li:last-child {
    border-bottom: none;
}

.footer-hours span {
    color: var(--light-text);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
    color: var(--light-text);
}

/* Botón flotante de catálogo */
.catalog-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.catalog-float-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.catalog-float-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: var(--light-text);
}

/* Utilidades */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--light-text);
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main {
        justify-content: space-between;
    }
    
    .mobile-menu-btn {
        display: block;
        color: var(--light-text);
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        box-shadow: var(--box-shadow);
        display: none;
        z-index: 100;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.1);
        padding-left: 2rem;
    }
    
    .dropdown-menu a {
        color: var(--light-text);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .footer-legal li:first-child {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .header-actions {
        width: 100%;
        justify-content: space-around;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-legal {
        flex-direction: column;
    }
    
    .footer-legal li {
        margin: 0.5rem 0;
    }
}

/* Sección PoweredBy */
.poweredby {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.poweredby p {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.poweredby strong {
    color: var(--primary-color);
}

.poweredby img {
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px;
}

.poweredby a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.poweredby a:hover {
    color: var(--light-color);
}

@media (max-width: 768px) {
    .poweredby p {
        flex-direction: column;
        gap: 8px;
    }
    
    .poweredby img {
        margin: 5px auto;
    }
}

@media (max-width: 576px) {
    .poweredby {
        padding: 10px 15px;
    }
    
    .poweredby p {
        font-size: 12px;
    }
}

/* Modal de confirmación para WhatsApp */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--light-color);
    margin: 15% auto;
    padding: 2.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease-out;
}

.modal-show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.modal-content p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.75rem;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 2rem;
        margin: 25% auto;
    }
}

@media (max-width: 576px) {
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modal-buttons button {
        width: 100%;
    }
} 