:root {
    --color-principal: #647f94;
    --color-oscuro: #111111;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

/* Fuente para Mercedes Mobile */
/* Definir la fuente Regular */
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-Regular.ttf') format('truetype'); /* Ajusta la ruta y formato */
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* Recomendado para rendimiento */
}

/* Definir la fuente Bold (Negrita) */
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* Header */
.main-header {
    height: 250px;
    background-image: url('../img2/header1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 60px; /* Espacio para que la barra se sobreponga */
}

.header-content {
    text-align: center;
    color: white;
}

.glow-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.5), 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 5px;
}

.subtitle { font-size: 1.2rem; margin-bottom: 5px; text-shadow: 1px 1px 3px black; }
.address { font-size: 1rem; text-shadow: 1px 1px 3px black; }

/* Navbar Pegajosa */
.navbar {
    height: 60px;
    background: linear-gradient(to right, rgba(100, 127, 148, 0.9), rgba(10, 10, 10, 0.95));
    position: sticky;
    top: 0;
    margin-top: -60px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.hamburger {
    width: 30px;
    height: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1002;
    position: relative;
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

.hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.nav-right { display: flex; align-items: center; gap: 10px; color: white; font-weight: bold; }
.nav-icon { width: 80px; height: 60px; object-fit: contain; border-radius: 1%;}
.nav-text {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 250px;
    left: -250px;
    width: 250px;
    height: auto;
    /* background-color: var(--color-principal); */
    background: rgba(100,127,148,0.9);
    z-index: 1001;
    transition: left 0.4s ease;
    padding-top: 80px;
}

.sidebar.active { left: 0; }
.sidebar-menu { list-style: none; }
.sidebar-menu li a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.3s;
}
.sidebar-menu li a:hover { background-color: rgba(0,0,0,0.1); }

/* Body - CSS Grid */
/* --- CONFIGURACIÓN CSS GRID PARA EL BODY --- */
.grid-container {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto auto auto auto; /* Cuatro filas principales */
  gap: 30px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Fila 1: Empresa con distribución específica */
/* .row-company { */
.grid-row {
  display: grid;
  grid-template-columns: 40% 60%; /* 40% pantalla para imagen, 60% para texto */
  gap: 25px;
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  align-items: center;
}
.col-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  object-fit: cover;
}
.col-text h1 {
  margin-top: 0;
  color: #111;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

/* Filas 2, 3 y 4: Ancho completo */
.row-full-width {
  grid-column: 1 / -1; /* Ocupa todo el ancho disponible */
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Formateo de Secciones Legales */
.legal-section h2 {
  color: #222;
  text-transform: uppercase;
  font-size: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-top: 0;
}
.legal-section h3 {
  font-size: 16px;
  color: #444;
  margin-top: 20px;
  margin-bottom: 5px;
}
.legal-section ul {
  padding-left: 20px;
  margin-top: 5px;
}
.legal-section li {
  margin-bottom: 5px;
}


/* Spinner AJAX */
.spinner {
    width: 40px; height: 40px; border: 4px solid rgba(0,0,0,0.1);
    border-top: 4px solid var(--color-principal); border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.oculto { display: none !important; }
.form-message { text-align: center; font-weight: bold; margin-top: 10px; }
.error-text { color: red; } .success-text { color: green; }

/* Botones Flotantes */
.floating-buttons { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 15px; z-index: 999; }
/* .float-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.2s; background-color: #25D366; } */
.float-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.2s; background-color: white; }
/*.float-btn.phone { background-color: var(--color-principal); }*/
.float-btn.wpp img { width: 55px; height: 55px; border-radius: 50%; }
.float-btn:hover { transform: scale(1.1); }
.float-btn img { width: 35px; height: 35px; }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; }
.modal-content { background: white; padding: 30px; border-radius: 8px; text-align: center; position: relative; max-width: 300px; }
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 1.5rem; cursor: pointer; }

/* Footer */
.main-footer { background-color: #222; color: white; padding: 40px 20px; text-align: center; }
.footer-links { margin-bottom: 20px; }
.footer-links a { color: #ccc; text-decoration: none; margin: 0 10px; font-size: 0.9rem; }
.footer-links a:hover { color: white; }
.footer-social { margin-bottom: 20px; font-weight: bold; }
.copyright { font-size: 0.8rem; color: #777; }

/* Iconos Sociales */
.social-links a {
    color: #fff;
    font-size: 20px;
    margin: 0 10px;
    text-decoration: none;
    /* transition: color 0.3s ease, transform 0.3s ease; */
    transition: all 0.3s ease; /* Transición suave para tamaño y color */
}

.social-links a:hover {
    color: #f1c40f;
    transform: scale(1.2); /* Efecto hover */
}

/* Estilos de la Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.4s;
}

.close-btn {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 28px;
    cursor: pointer;
}


/* Responsive */
@media (max-width: 768px) {
     .grid-row { grid-template-columns: 1fr; } 
    /* .grid-container { grid-template-columns: 1fr; } */
    .glow-title { font-size: 2.2rem; }
}
