/* ====== Estilos Generales ====== */
:root {
    --gold-bright-color: #D4AF37;
    --sidebar-gold-color: #6B5B1E;
    --dark-color: #1a1a1a;
    --light-color: #f4f4f4;
    --dark-gray: #333;
    --content-width: 1200px;
    --sidebar-width: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--light-color);
    background: linear-gradient(to right,
        var(--sidebar-gold-color) 0,
        var(--sidebar-gold-color) var(--sidebar-width),
        var(--dark-color) var(--sidebar-width),
        var(--dark-color) calc(100% - var(--sidebar-width)),
        var(--sidebar-gold-color) calc(100% - var(--sidebar-width)),
        var(--sidebar-gold-color) 100%
    );
    padding-top: 90px;
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 { color: var(--gold-bright-color); font-weight: 500; }
p { margin-bottom: 1rem; color: #fff; }

/* ====== Header ====== */
#header {
    position: fixed;
    width: 100%;
    height: 90px;
    top: 0;
    left: 0;
    z-index: 1000;
    background: linear-gradient(to right,
        var(--gold-bright-color) 0,
        var(--gold-bright-color) var(--sidebar-width),
        rgba(26, 26, 26, 0.9) var(--sidebar-width),
        rgba(26, 26, 26, 0.9) calc(100% - var(--sidebar-width)),
        var(--gold-bright-color) calc(100% - var(--sidebar-width)),
        var(--gold-bright-color) 100%
    );
    backdrop-filter: blur(10px);
}

.navbar {
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 3rem;
}

.logo img {
  height: 75px;
  width: auto;
  border: 2px solid var(--gold-bright-color);
  padding: 4px;
  border-radius: 5px;
  background: var(--dark-color);
  transition: transform 0.3s ease;
}

.logo img:hover { transform: scale(1.05); }

.navigation-group { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; margin-right: 2.5rem; }
.nav-menu li { padding: 0 15px; }
.nav-link { color: var(--light-color); text-decoration: none; font-size: 1rem; padding-bottom: 5px; position: relative; transition: color 0.3s; }
.nav-link:hover { color: var(--gold-bright-color); }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%; transform: translateX(-50%); background-color: var(--gold-bright-color); transition: width 0.3s ease-in-out; }
.nav-link:hover::after { width: 100%; }
.btn-login {
    background: var(--gold-bright-color);
    color: var(--dark-color);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}
.btn-login:hover { background: var(--light-color); color: var(--dark-color); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold-bright-color);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1100;
}

/* ====== Hero Section ====== */
#hero {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://source.unsplash.com/1600x900/?spa,luxury,dark') no-repeat center center/cover;
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: overlay;
    padding: 0 20px;
}

.hero-container h1 { font-size: 3.8rem; font-weight: 600; }
.hero-container h2 { font-size: 1.5rem; color: #ddd; }

/* ====== Secciones Generales ====== */
section { padding: 80px 0; }
.section-bg { background-color: #111; }
.section-title { text-align: center; padding-bottom: 40px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; position: relative; display: inline-block; }
.section-title h2::after { content: ''; position: absolute; display: block; width: 60px; height: 3px; background: var(--gold-bright-color); bottom: -10px; left: calc(50% - 30px); }
.section-title p { max-width: 700px; margin: auto; color: #ccc; }

/* ====== Servicios y Productos (SOLUCIÓN FINAL) ====== */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.service-item {
    background: var(--dark-gray);
    padding: 28px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    width: calc(33.333% - 20px);
    flex-grow: 0;
    flex-shrink: 0;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-color: var(--gold-bright-color);
}
.service-item h4 { font-size: 1.5rem; margin-bottom: 10px; color: var(--gold-bright-color); }

/* --- AQUÍ ESTÁ LA CORRECCIÓN --- */
.service-item p {
    color: #fff;
    flex-grow: 1;
    overflow-wrap: break-word; /* Permite que las palabras largas se corten */
    word-wrap: break-word;     /* Compatibilidad con navegadores antiguos */
}

.icon-container { display: flex; justify-content: center; align-items: center; margin-bottom: 15px; }
.icon-container img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold-bright-color);
}

.info-btn {
    background: var(--gold-bright-color);
    color: var(--dark-color);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 20px;
}
.info-btn:hover { background: var(--light-color); color: var(--dark-color); }

/* ====== Contacto y Footer ====== */
#contact .contact-info { text-align: center; margin-bottom: 30px; }
#contact .contact-info i { color: var(--gold-bright-color); margin-right: 10px; }
.social-links { text-align: center; }
.social-links a { font-size: 2rem; color: #ccc; margin: 0 15px; transition: color 0.3s, transform 0.3s; display: inline-block; }
.social-links a:hover { color: var(--gold-bright-color); transform: scale(1.1); }
#footer { background: #000; color: #aaa; text-align: center; padding: 20px 0; margin-top: 40px; }
.whatsapp-flotante { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 30px; background-color: var(--gold-bright-color); color: var(--dark-color); border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3); z-index: 1002; display: flex; justify-content: center; align-items: center; text-decoration: none; transition: transform 0.3s ease; }
.whatsapp-flotante:hover { transform: scale(1.1); }

/* ====== Ventana Emergente (Modal) ====== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 20px; }
.modal-content { background: var(--dark-gray); padding: 30px 40px; border-radius: 10px; text-align: center; border: 1px solid var(--gold-bright-color); box-shadow: 0 5px 25px rgba(0,0,0,0.5); }
.modal-content p { color: var(--light-color); font-size: 1.1rem; margin-bottom: 25px; }
.modal-actions button { border: none; padding: 12px 30px; border-radius: 50px; font-weight: bold; cursor: pointer; transition: background-color 0.3s, color 0.3s; margin: 0 10px; }
#modal-ok-btn { background: var(--gold-bright-color); color: var(--dark-color); }
#modal-ok-btn:hover { background: var(--light-color); color: var(--dark-color); }
#modal-cancel-btn { background: #555; color: var(--light-color); }
#modal-cancel-btn:hover { background: #777; }

/* =================================== */
/* ====== ESTILOS RESPONSIVOS ====== */
/* =================================== */
@media (max-width: 1200px) {
    .service-item {
        flex-basis: calc(50% - 15px); /* 2 columnas en tablets */
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }
    .container {
        padding: 0 30px;
    }
    .navbar .container {
        justify-content: space-between;
        gap: 0;
    }
    .navigation-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
        padding: 10px 0;
        opacity: 0;
        transform: translateY(-20px);
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }
    .navigation-group.nav-menu-visible {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }
    .nav-menu {
        flex-direction: column;
        margin: 0;
        width: 100%;
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
        transition: background-color 0.3s;
    }
    .nav-menu li a {
        display: block;
        padding: 18px 0;
    }
    .nav-menu li:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
    .header-actions {
        padding: 20px 0;
        margin-top: 10px;
        width: 90%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }
    .nav-toggle {
        display: block;
    }
    .hero-container h1 { font-size: 2.5rem; }
    .hero-container h2 { font-size: 1.2rem; }
    .section-title h2 { font-size: 2rem; }
    
    .services-grid {
        justify-content: center;
    }
    .service-item {
        flex-basis: 100%; /* 1 columna en móviles */
    }
}