/* styles.css */

/* Tipografías de marca */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500&family=Poppins:wght@300;400;500;600&display=swap');

/* Paleta de marca */
:root {
    --brand-black: #000000; /* RGB 0,0,0 */
    --brand-gold:  #d6ad6b; /* RGB 214,173,107 */
    --brand-brown: #90662c; /* RGB 144,102,44 */
    --ink: #1a1a1a;
    --muted: #6b6b6b;
    --paper: #ffffff;
    
    /* Mapping to old variables for compatibility */
    --primary-color: var(--brand-brown);
    --secondary-color: var(--muted);
    --accent-color: var(--brand-gold);
    --light-bg: #f8f9fa; /* Keeping a light gray for backgrounds */
}

/* Estilos generales */
body {
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    margin: 0;
    padding: 0;
    line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Oswald", system-ui, sans-serif;
    font-weight: 400;
    color: var(--brand-black);
}

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

a:hover {
    text-decoration: none;
    color: var(--brand-gold);
}

/* Navbar */
.navbar {
    --bs-navbar-padding-y: 6px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    transition: background-color 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%3E%3Cdefs%3E%3Cpattern%20id='tilePattern'%20width='12'%20height='12'%20patternUnits='userSpaceOnUse'%20patternTransform='rotate(-8)'%3E%3Cpolygon%20points='6,0%2012,6%206,12%200,6'%20fill='none'%20stroke='%23d6ad6b'%20stroke-opacity='.24'%20stroke-width='.35'/%3E%3Cpolygon%20points='6,2%2010,6%206,10%202,6'%20fill='none'%20stroke='%2390662c'%20stroke-opacity='.22'%20stroke-width='.25'/%3E%3C/pattern%3E%3C/defs%3E%3Crect%20width='100%25'%20height='100%25'%20fill='url(%23tilePattern)'/%3E%3C/svg%3E");
    border-bottom: 1px solid rgba(144, 102, 44, 0.45);
}

.navbar .container {
    max-width: none; /* Override Bootstrap's fixed max-width */
    padding-left: 20px;
    padding-right: 20px;
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    color: var(--ink) !important;
}

.nav-link.active, .nav-link:hover {
    color: var(--brand-brown) !important;
}

/* Sección Hero */
.hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 150px 0;
    text-align: center;
}

.hero-section h1 {
    font-weight: 500;
    font-size: 3.5rem;
    letter-spacing: 1.2px;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

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

/* Tarjetas de Servicio */
.service-card, .feature-box, .contact-info-box {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: var(--paper);
}

.service-card:hover, .feature-box:hover, .contact-info-box:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.service-icon, .feature-icon, .contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Sección CTA */
.cta-section {
    background-color: var(--brand-brown);
    background-image: linear-gradient(to right, var(--brand-brown), var(--brand-gold));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
}

/* Sección de Contacto */
.contact-section {
    padding: 5rem 0;
}

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

.contact-info-box {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.contact-info-box i {
    margin-bottom: 1rem;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.contact-form .form-control {
    margin-bottom: 1rem;
}

#map {
    height: 400px;
    width: 100%;
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

/* Botón de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: none; /* Se muestra vía JS */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
}

/* Footer */
footer {
    background-color: var(--ink);
    color: var(--paper);
    padding: 3rem 0;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%3E%3Cdefs%3E%3Cpattern%20id='tileFooterPattern'%20width='12'%20height='12'%20patternUnits='userSpaceOnUse'%20patternTransform='rotate(-8)'%3E%3Cpolygon%20points='6,0%2012,6%206,12%200,6'%20fill='none'%20stroke='%23d6ad6b'%20stroke-opacity='.20'%20stroke-width='.28'/%3E%3Cpolygon%20points='6,2%2010,6%206,10%202,6'%20fill='none'%20stroke='%2390662c'%20stroke-opacity='.18'%20stroke-width='.22'/%3E%3C/pattern%3E%3C/defs%3E%3Crect%20width='100%25'%20height='100%25'%20fill='url(%23tileFooterPattern)'/%3E%3C/svg%3E");
    border-top: 1px solid rgba(144, 102, 44, 0.45);
}

footer a {
    color: var(--paper);
    transition: color 0.3s ease;
}

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

footer .social-links a {
    margin-right: 15px;
    font-size: 1.2rem;
}

footer h5 {
    font-family: "Oswald", sans-serif;
    color: var(--brand-gold);
    letter-spacing: 1px;
}

/* Submenú */
.submenu-static {
    background-color: var(--light-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    margin-top: 5rem; /* Espaciado superior añadido */
}

.submenu-static ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.submenu-static ul li {
    margin: 0 1rem;
}

.submenu-static ul li a {
    color: var(--secondary-color);
    font-weight: bold;
    font-family: "Poppins", sans-serif;
}

.submenu-static ul li a:hover {
    color: var(--primary-color);
}

/* Botones */
.btn-primary {
    background-color: var(--brand-brown);
    border-color: var(--brand-brown);
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    padding: 12px 24px;
    letter-spacing: .5px;
}

.btn-primary:hover {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
    color: var(--brand-black);
}

.btn-light {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    padding: 12px 24px;
    letter-spacing: .5px;
}
