/* ===== ESTILOS GLOBALES ===== */
:root {
    /* Paleta de colores */
    --primary-color: #1a2d45;
    --secondary-color: #c8a97e;
    --accent-color: #d92332;
    --text-color: #333333;
    --light-text: #ffffff;
    --light-bg: #f8f8f8;
    --dark-bg: #2c3e50;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;

    /* Fuentes */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Tamaños y espacios */
    --header-height: 80px;
    --container-width: 1200px;
    --section-spacing: 80px;
    --element-spacing: 20px;
    --border-radius: 4px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

ul, ol {
    list-style: none;
}

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

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

/* Cabecera */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    height: 60px;
    background-color: rgba(255, 255, 255, 0.98);
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary-color);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Secciones */
section {
    padding: var(--section-spacing) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--light-text);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--light-text);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after,
.footer-social h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 14px;
}

/* 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-text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

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

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

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

/* Botón flotante de catálogo */
.floating-catalog-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.floating-catalog-btn a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    color: var(--light-text);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-catalog-btn a i {
    font-size: 24px;
    margin-bottom: 3px;
}

.floating-catalog-btn a span {
    font-size: 10px;
    font-weight: 600;
}

.floating-catalog-btn a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.fadeInDown {
    animation-name: fadeInDown;
}

.pulse {
    animation-name: pulse;
    animation-iteration-count: infinite;
    animation-duration: 2s;
}

/* Animaciones para elementos al hacer scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-top {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-bottom {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rotate-in {
    opacity: 0;
    transform: rotate(-5deg) scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bounce-in {
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Clases activas para animaciones */
.fade-in.active,
.slide-in-left.active,
.slide-in-right.active,
.slide-in-top.active,
.slide-in-bottom.active,
.scale-in.active,
.rotate-in.active,
.bounce-in.active {
    opacity: 1;
    transform: translate(0) scale(1) rotate(0);
}

/* Media Queries */
@media (max-width: 992px) {
    :root {
        --section-spacing: 60px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--light-text);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    nav.active ul {
        transform: translateY(0);
    }

    nav ul li {
        margin: 15px 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links, .footer-contact, .footer-social {
        margin-top: 30px;
    }
    
    .poweredby p {
        flex-direction: column;
        gap: 8px;
    }
    
    .poweredby img {
        margin: 5px auto;
    }
}

@media (max-width: 576px) {
    :root {
        --section-spacing: 40px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .section-title {
        margin-bottom: 30px;
    }
    
    .poweredby {
        padding: 10px 15px;
    }
    
    .poweredby p {
        font-size: 12px;
    }

    .floating-catalog-btn {
        bottom: 20px;
        right: 20px;
    }

    .floating-catalog-btn a {
        width: 60px;
        height: 60px;
    }
}

/* Estilos para el modal de confirmación */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: var(--light-bg);
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

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

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-text);
    cursor: pointer;
    transition: color 0.3s ease;
}

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

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

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        padding: 20px;
        margin: 20% auto;
    }
} 