/* ===============================================================
   Maestranza Rovial SpA - Estilos Frontend
   PALETA INDUSTRIAL NEGRO/DORADO
   Negro: #000000, #111111, #1a1a1a, #222222
   Dorado: #f5c518, #e6b800, #ffd700, #cc9a00
   Gris cálido: #f5f0e8, #e8e0d0
   Acentos: #333333, #444444
   =============================================================== */

:root {
    --black: #000000;
    --black-2: #0d0d0d;
    --black-3: #111111;
    --black-4: #1a1a1a;
    --black-5: #222222;
    --black-6: #2a2a2a;
    --dark: #000000;
    --gray-900: #111111;
    --gray-800: #1a1a1a;
    --gray-700: #2a2a2a;
    --gray-600: #333333;
    --gray-500: #444444;
    --gray-400: #666666;
    --gray-300: #999999;
    --gray-200: #cccccc;
    --gray-100: #e8e0d0;
    --gray-50: #f5f0e8;
    --gold: #f5c518;
    --gold-dark: #cc9a00;
    --gold-light: #ffd700;
    --gold-hover: #e6b800;
    --gold-soft: #fef7e0;
    --white: #ffffff;
    --light: #f5f0e8;
    --bg-alt: #f5f0e8;
    --bg-dark: #0d0d0d;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-hover: 0 12px 35px rgba(0,0,0,0.2);
    --shadow-gold: 0 8px 25px rgba(245, 197, 24, 0.25);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--gray-600);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background: var(--white);
}

a { transition: var(--transition); color: var(--gold-dark); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }

/* ─── Section Titles ───────────────────────────────────────── */
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.3px;
}
.section-title.title-gold {
    color: var(--gold) !important;
}
.section-title.title-gold::after {
    background: var(--gold);
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 15px auto 0;
    border-radius: 4px;
}

.section-subtitle { 
    color: var(--gray-500); 
    font-size: 1.05rem; 
    max-width: 600px; 
    margin: 0 auto 50px; 
    line-height: 1.8;
}

/* ─── Section Backgrounds ──────────────────────────────────── */
section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { 
    background: var(--black-4); 
    color: var(--white); 
}
.section-dark .section-title { color: var(--white); }
.section-dark .section-title::after { background: var(--gold); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* ─── Navbar ───────────────────────────────────────────────── */
.navbar {
    background: var(--black-2) !important;
    padding: 8px 0;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    border-bottom: 3px solid var(--gold);
}
.navbar.scrolled { 
    background: rgba(0, 0, 0, 0.97) !important; 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.navbar.light {
    background: var(--white) !important;
    border-bottom: 3px solid var(--gold);
}
.navbar.light .navbar-brand,
.navbar.light .navbar-nav .nav-link { color: var(--black) !important; }
.navbar.light .navbar-nav .nav-link:hover,
.navbar.light .navbar-nav .nav-link.active { color: var(--gold-dark) !important; }

.navbar.transparent {
    background: transparent !important;
    border-bottom: none;
    box-shadow: none;
}
.navbar.transparent.scrolled {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand { 
    font-weight: 800; 
    font-size: 1.2rem; 
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand img { max-height: 45px; transition: var(--transition); }
.navbar-brand:hover img { transform: scale(1.05); }

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 60%; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--gold) !important; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn-primary-custom { 
    background: var(--black); 
    color: var(--gold); 
    border: 2px solid var(--gold); 
}
.btn-primary-custom:hover { 
    background: var(--gold); 
    border-color: var(--gold); 
    color: var(--black);
    transform: translateY(-3px); 
    box-shadow: var(--shadow-gold);
}

.btn-accent { 
    background: var(--gold); 
    color: var(--black); 
    border: 2px solid var(--gold); 
    font-weight: 700;
}
.btn-accent:hover { 
    background: var(--gold-hover); 
    border-color: var(--gold-hover); 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(245,197,24,0.35);
    color: var(--black);
}

.btn-outline-accent { 
    border: 2px solid var(--gold); 
    color: var(--gold); 
    background: transparent; 
}
.btn-outline-accent:hover { 
    background: var(--gold); 
    color: var(--black); 
    transform: translateY(-3px); 
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    padding: 160px 0 120px;
    color: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,197,24,0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245,197,24,0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero-section .container { position: relative; z-index: 2; }

.hero-logo {
    max-height: 110px;
    margin-bottom: 30px;
    transition: var(--transition);
    filter: brightness(1) drop-shadow(0 5px 15px rgba(245,197,24,0.2));
}
.hero-logo:hover { transform: scale(1.02); }

.hero-title { 
    font-size: 3rem; 
    font-weight: 900; 
    margin-bottom: 20px; 
    line-height: 1.1; 
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-title .gold { color: var(--gold); }
.hero-title .gold-light { color: var(--gold-light); }

.hero-subtitle { 
    font-size: 1.15rem; 
    color: rgba(255,255,255,0.7);
    margin-bottom: 35px; 
    max-width: 650px; 
    line-height: 1.8; 
}
.hero-cta .btn {
    padding: 16px 38px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    margin-right: 12px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Hero Stats ───────────────────────────────────────────── */
.hero-stats {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(245,197,24,0.15);
}
.hero-stats .stat-item {
    text-align: center;
}
.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
}
.hero-stats .stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── Servicios ────────────────────────────────────────────── */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-bottom: 3px solid transparent;
}
.service-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--gold);
}
.service-card .img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}
.service-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .img-wrapper img { transform: scale(1.08); }
.service-card .icon-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.5rem;
    background: rgba(0,0,0,0.75);
    color: var(--gold);
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(245,197,24,0.3);
}
.service-card .fallback-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    background: #f0f0f0;
    color: #ccc;
    font-size: 3rem;
}
.service-body { padding: 20px; }
.service-body h3 { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--black); 
    margin-bottom: 10px; 
}
.service-body p { 
    font-size: 0.85rem; 
    color: var(--gray-500); 
    margin-bottom: 0; 
    line-height: 1.7;
}

/* ─── Maquinaria ──────────────────────────────────────────── */
.machinery-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-bottom: 3px solid transparent;
}
.machinery-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--gold);
}
.machinery-card .img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}
.machinery-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.machinery-card:hover .img-wrapper img { transform: scale(1.08); }
.machinery-card .availability-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.machinery-card .availability-badge.available { background: #d4edda; color: #155724; }
.machinery-card .availability-badge.unavailable { background: #f8d7da; color: #721c24; }
.machinery-body { padding: 20px; }
.machinery-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--black); }
.machinery-body p { font-size: 0.85rem; color: var(--gray-500); }
.machinery-tech {
    background: #f8f8f8;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-top: 12px;
    border-left: 3px solid var(--gold);
}
.machinery-tech span { display: block; margin-bottom: 4px; }
.machinery-tech strong { color: var(--black); }

/* ─── Proyectos ────────────────────────────────────────── */
.project-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    height: 260px;
}
.project-card:hover { 
    transform: scale(1.03); 
    box-shadow: var(--shadow-hover); 
}
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover img { transform: scale(1.1); }
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
    opacity: 0.9;
}
.project-card:hover .project-overlay { transform: translateY(0); opacity: 1; }
.project-overlay h3 { font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.project-overlay p { font-size: 0.8rem; opacity: 0.85; margin: 0; }
.project-overlay .location-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-bottom: 8px;
    font-weight: 600;
}

/* ─── "Qué Hacemos" ──────────────────────────────────────── */
.what-we-do-section {
    background: var(--black-4);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.what-we-do-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245,197,24,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.what-we-do-section h2.section-title {
    color: var(--gold) !important;
}
.what-we-do-section h2 { margin-bottom: 20px; }
.what-we-do-section .lead { 
    font-size: 1.1rem; 
    opacity: 0.85; 
    line-height: 1.8;
    max-width: 800px;
}
.what-we-do-section .feature-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: rgba(245,197,24,0.12);
    color: var(--gold);
    border-radius: 16px;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 15px;
}
.what-we-do-section h6 { color: var(--gold); }

/* ─── Clientes - Carrusel Infinito ──────────────────────── */
.client-logos-section {
    background: var(--white);
    overflow: hidden;
}
.client-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}
.client-carousel-wrapper::before,
.client-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.client-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}
.client-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}
.client-carousel-track {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: scrollClients 40s linear infinite;
    width: max-content;
}
.client-carousel-track:hover {
    animation-play-state: paused;
}
@keyframes scrollClients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}
.client-logo-slide {
    flex: 0 0 auto;
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: all 0.4s ease;
}
.client-logo-slide:hover {
    filter: grayscale(0);
    opacity: 1;
}
.client-logo-img {
    max-height: 65px;
    max-width: 150px;
    object-fit: contain;
}
.client-logo-text {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
    white-space: nowrap;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-section { background: var(--bg-alt); }
.faq-section .accordion-item {
    border: none;
    margin-bottom: 12px;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.faq-section .accordion-button {
    font-weight: 600;
    color: var(--black);
    background: var(--white);
    box-shadow: none !important;
    padding: 18px 25px;
    font-size: 1rem;
}
.faq-section .accordion-button:not(.collapsed) { 
    color: var(--gold-dark); 
    background: var(--gold-soft);
}
.faq-section .accordion-button::after { background-size: 1rem; }
.faq-section .accordion-body { 
    padding: 0 25px 20px; 
    color: var(--gray-500); 
    line-height: 1.8; 
}

/* ─── Áridos ────────────────────────────────────────────── */
.aggregate-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}
.aggregate-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.aggregate-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.aggregate-body { padding: 22px; }
.aggregate-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--black); }
.aggregate-body .unit { 
    color: var(--gold-dark); 
    font-weight: 700; 
    font-size: 0.9rem;
    display: inline-block;
    background: var(--gold-soft);
    padding: 3px 14px;
    border-radius: 15px;
    margin-bottom: 8px;
}
.aggregate-body .price-note { 
    font-size: 0.85rem; 
    color: var(--gray-400); 
    font-style: italic;
}
.aggregate-body p { font-size: 0.85rem; color: var(--gray-500); }

/* ─── Formulario contacto ────────────────────────────────── */
.contact-section { background: var(--bg-alt); }
.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 45px;
    box-shadow: var(--shadow);
}
.contact-form .form-label { 
    font-weight: 600; 
    color: var(--black);
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.contact-form .form-control, 
.contact-form .form-select {
    border-radius: 10px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
    font-size: 0.95rem;
}
.contact-form .form-control:focus, 
.contact-form .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(245,197,24,0.15);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn-submit {
    background: var(--black);
    color: var(--gold);
    padding: 14px 45px;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--gold);
    transition: var(--transition);
    font-size: 1rem;
}
.contact-form .btn-submit:hover { 
    background: var(--gold); 
    border-color: var(--gold);
    color: var(--black);
    transform: translateY(-3px); 
    box-shadow: var(--shadow-gold); 
}
.contact-form .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-info-box {
    background: var(--black-4);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245,197,24,0.1);
}
.contact-info-box::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(245,197,24,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.contact-info-box h4 { 
    font-weight: 800; 
    margin-bottom: 25px; 
    position: relative;
    z-index: 1;
    color: var(--gold);
}
.contact-info-box p { margin-bottom: 15px; font-size: 0.95rem; position: relative; z-index: 1; }
.contact-info-box i { 
    margin-right: 12px; 
    color: var(--gold); 
    width: 20px;
    text-align: center;
}
.contact-info-box a { color: var(--white); text-decoration: none; transition: var(--transition); }
.contact-info-box a:hover { color: var(--gold); padding-left: 5px; }
.hp-field { display: none !important; }
.alert { border-radius: 10px; }
.spinner-border { width: 1.2rem; height: 1.2rem; margin-right: 8px; }

/* ─── Footer ────────────────────────────────────────────── */
.footer {
    background: var(--black-2);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.footer h5 { 
    font-weight: 800; 
    margin-bottom: 20px; 
    color: var(--gold);
    font-size: 1rem;
    position: relative;
    padding-bottom: 12px;
}
.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}
.footer p, .footer a { font-size: 0.92rem; color: rgba(255,255,255,0.65); }
.footer a:hover { color: var(--gold); text-decoration: none; }
.footer .social-links a {
    display: inline-block;
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    margin-right: 8px;
    transition: var(--transition);
    font-size: 1.1rem;
}
.footer .social-links a:hover { 
    background: var(--gold); 
    color: var(--black);
    transform: translateY(-3px); 
}
.footer .contact-item { margin-bottom: 12px; }
.footer .contact-item i { 
    color: var(--gold); 
    margin-right: 10px; 
    width: 18px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom a { color: var(--gold); }
.footer iframe { border-radius: var(--radius); width: 100%; height: 220px; border: 0; }

/* ─── Quiénes Somos (About Cards) ──────────────────────────── */
.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}
.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--gold);
}
.about-card .about-icon {
    width: 65px;
    height: 65px;
    line-height: 65px;
    background: rgba(245,197,24,0.12);
    color: var(--gold-dark);
    border-radius: 18px;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    transition: var(--transition);
}
.about-card:hover .about-icon {
    background: var(--gold);
    color: var(--black);
    transform: rotate(-5deg) scale(1.05);
}
.about-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 12px;
}
.about-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}
.about-card p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 0;
}
.about-values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.about-values-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
}
.about-values-list li:last-child {
    border-bottom: none;
}
.about-values-list li strong {
    color: var(--gold-dark);
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

/* ─── Google Maps Embed ───────────────────────────────────── */
.gmap-wrapper {
    margin-top: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 2px solid rgba(245,197,24,0.15);
}
.gmap-wrapper iframe {
    width: 100%;
    height: 250px;
    border: 0;
    display: block;
}

/* ─── WhatsApp Float ──────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 1.8rem;
    line-height: 60px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); transform: scale(1.05); }
    100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
}
.whatsapp-float:hover {
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.6);
    animation: none;
}

/* ─── Lightbox ────────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 92%;
    max-height: 88vh;
    border-radius: var(--radius);
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 2.5rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255,255,255,0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover { 
    color: var(--gold); 
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}
.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1rem;
    background: rgba(0,0,0,0.5);
    padding: 10px 25px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

/* ─── Filtros galería ────────────────────────────────────── */
.filter-btn {
    background: transparent;
    border: 2px solid #ddd;
    color: var(--gray-500);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    margin: 3px;
    cursor: pointer;
}
.filter-btn:hover, .filter-btn.active { 
    background: var(--black); 
    border-color: var(--gold);
    color: var(--gold); 
}

/* ─── Paginación ──────────────────────────────────────────── */
.pagination .page-link {
    color: var(--black);
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 0 3px;
    padding: 8px 14px;
    transition: var(--transition);
}
.pagination .page-link:hover { background: var(--bg-alt); border-color: #ddd; }
.pagination .page-item.active .page-link { 
    background: var(--black); 
    border-color: var(--gold);
    color: var(--gold); 
}

/* ─── Página legal ────────────────────────────────────────── */
.legal-page { 
    padding-top: 110px; 
    padding-bottom: 60px; 
    background: var(--bg-alt);
    min-height: 100vh;
}
.legal-content { 
    max-width: 800px; 
    margin: 0 auto; 
    line-height: 2;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.legal-content h2 { 
    color: var(--black); 
    margin-top: 35px; 
    font-weight: 700;
}
.legal-content h3 { color: var(--gold-dark); margin-top: 25px; }

/* ─── Animaciones ────────────────────────────────────────── */
.fade-in { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-left { 
    opacity: 0; 
    transform: translateX(-40px); 
    transition: opacity 0.6s ease, transform 0.6s ease; 
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-right { 
    opacity: 0; 
    transform: translateX(40px); 
    transition: opacity 0.6s ease, transform 0.6s ease; 
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* ─── Blog preview ───────────────────────────────────────── */
.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-body { padding: 20px; }
.blog-body .blog-date { 
    font-size: 0.8rem; 
    color: var(--gray-400); 
    margin-bottom: 8px; 
}
.blog-body h3 { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--black); 
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-body p { font-size: 0.85rem; color: var(--gray-500); }
.blog-body .read-more {
    color: var(--gold-dark);
    font-weight: 600;
    text-decoration: none;
}
.blog-body .read-more:hover { color: var(--gold); padding-left: 5px; }

/* ─── Section Alterna (fondo gris claro) ──────────────────── */
.section-alt {
    background-color: var(--gray-100);
}
.section-dark {
    background: var(--black);
    color: var(--white);
}
.section-dark .section-subtitle { color: var(--gray-400); }
.title-gold { color: var(--gold); }

/* ─── About / Quiénes Somos ───────────────────────────────── */
.about-rovial {
    background: var(--white);
}
.about-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-600);
    font-weight: 400;
}
.about-lead strong {
    color: var(--gold-dark);
    font-weight: 700;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}
.about-feature i {
    font-size: 1.3rem;
    color: var(--gold);
}
.about-feature:hover {
    background: var(--gold);
    color: var(--black);
}
.about-feature:hover i { color: var(--black); }
.about-image-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}
.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.about-image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--gold);
    color: var(--black);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Hero Slogan */
.hero-slogan {
    color: var(--gold, #d4af37);
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Misión y Visión en About */
.about-mission,
.about-vision {
    height: 100%;
    transition: transform 0.3s ease;
}
.about-mission:hover,
.about-vision:hover {
    transform: translateY(-2px);
}
.about-mission h6 i,
.about-vision h6 i {
    color: var(--gold, #d4af37);
}
.about-mission p,
.about-vision p {
    line-height: 1.6;
}
.about-history p {
    line-height: 1.8;
    color: var(--gray-600, #555);
    font-size: 0.95rem;
}

/* Final del archivo - no agregar más estilos abajo */

/* ─── Service Cards ───────────────────────────────────────── */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}
.service-card-header {
    background: var(--black);
    color: var(--white);
    padding: 25px 25px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.service-card-header i {
    font-size: 2rem;
    color: var(--gold);
    flex-shrink: 0;
}
.service-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.service-card-body {
    padding: 20px 25px 25px;
}
.service-card-body p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 15px;
}
.service-card-body .service-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black);
}
.service-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-highlights li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--gray-600);
    position: relative;
    padding-left: 18px;
}
.service-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}
.badge-gold {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    vertical-align: middle;
    margin-left: 5px;
    letter-spacing: 0.5px;
}

/* ─── Why Choose Us / Por qué Elegirnos ───────────────────── */
.why-card {
    text-align: center;
    padding: 35px 25px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.why-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
    border-color: var(--gold);
}
.why-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-icon i {
    font-size: 2rem;
    color: var(--gold);
}
.why-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.why-card p {
    font-size: 0.88rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin: 0;
}

/* ─── Project Featured Cards ──────────────────────────────── */
.project-featured-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.project-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.project-featured-img {
    position: relative;
    overflow: hidden;
    height: 260px;
}
.project-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-featured-card:hover .project-featured-img img {
    transform: scale(1.05);
}
.project-featured-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.8);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}
.project-featured-badge i {
    color: var(--gold);
}
.project-featured-body {
    padding: 25px;
}
.project-featured-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
    line-height: 1.4;
}
.project-featured-body > p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 18px;
}
.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    border-top: 1px solid var(--gray-200);
    padding-top: 15px;
}
.detail-item {
    padding: 0;
}
.detail-item strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 3px;
}
.detail-item strong i {
    color: var(--gold);
    margin-right: 4px;
}
.detail-item p {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.6;
}

/* ─── Capabilities / Shop Panoramic ───────────────────────── */
.shop-panoramic {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.shop-panoramic img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.capability-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--gray-200);
}
.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}
.capability-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.capability-icon i {
    font-size: 1.8rem;
    color: var(--gold);
}
.capability-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}
.capability-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.capability-card ul li {
    padding: 4px 0;
    font-size: 0.85rem;
    color: var(--gray-500);
    position: relative;
    padding-left: 16px;
}
.capability-card ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* ─── Quality Section ─────────────────────────────────────── */
.quality-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 30px;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.quality-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--gold);
}
.quality-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.quality-card-header i {
    font-size: 1.8rem;
    color: var(--gold);
}
.quality-card-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}
.quality-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.quality-list li {
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--gray-300);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.quality-list li i {
    color: var(--gold);
    font-size: 0.6rem;
    margin-top: 8px;
}

/* ─── Contact Form Enhanced ───────────────────────────────── */
.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}
.contact-form .form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gray-600);
}
.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}
.contact-form .btn-submit {
    background: var(--gold);
    color: var(--black);
    padding: 12px 35px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 1rem;
}
.contact-form .btn-submit:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.35);
}
.contact-form .hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}
.contact-form small.text-muted {
    font-size: 0.78rem;
}
.contact-info-box {
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    height: 100%;
}
.contact-info-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-info-box h4 i { color: var(--gold); }
.contact-info-box h5 i {
    color: var(--gold);
    margin-right: 8px;
}
.contact-info-box p {
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-info-box p i {
    color: var(--gold);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}
.contact-info-box a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}
.contact-info-box a:hover {
    color: var(--gold);
}
.gmap-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.gmap-wrapper iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}

/* ─── Hero Stats ──────────────────────────────────────────── */
.hero-stats .stat-item {
    text-align: center;
    padding: 10px;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.hero-stats .stat-item:last-child { border-right: none; }
.hero-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1.2;
}
.hero-stats .stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-300);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Divider Gold ────────────────────────────────────────── */
.gold-divider {
    width: 80px;
    height: 4px;
    background: var(--gold);
    border-radius: 4px;
    margin: 20px auto;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1199px) {
    .hero-title { font-size: 2.6rem; }
}
@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
    .hero-section { padding: 130px 0 80px; }
    .navbar-nav { 
        background: rgba(0,0,0,0.98); 
        border-radius: var(--radius); 
        padding: 15px; 
        margin-top: 10px; 
    }
    section { padding: 70px 0; }
}
@media (max-width: 767px) {
    section { padding: 50px 0; }
    .hero-section { padding: 110px 0 60px; min-height: auto; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta .btn { padding: 12px 25px; font-size: 0.9rem; }
    .section-title { font-size: 1.6rem; }
    .contact-form { padding: 25px; }
    .contact-info-box { margin-top: 20px; }
    .testimonial-card { padding: 25px; }
    .project-card { height: 200px; }
    .legal-content { padding: 20px; margin: 0 15px; }
    .footer { padding: 40px 0 0; }
    .hero-stats .stat-number { font-size: 1.5rem; }
}
@media (max-width: 575px) {
    .hero-title { font-size: 1.5rem; }
    .hero-logo { max-height: 70px; }
}

/* ─── Texto justificado ──────────────────────────────────── */
.about-lead,
.about-history p,
.about-mission p,
.about-vision p,
.service-card-body p,
.description-text,
.service-hero-desc,
.service-cta-section p,
.legal-content p,
.blog-content p,
.post-body p,
.quality-card li,
.capability-card p,
.why-card p,
.project-overlay p,
.project-modal-desc,
.contact-info-box p,
.footer p {
    text-align: justify;
}

/* NO justificar: hero, titulos, subtitulos, botones */
.hero-title,
.hero-subtitle,
.hero-slogan,
.section-title,
.section-subtitle,
h1, h2, h3, h4, h5, h6,
.nav-link, .navbar-brand, .btn,
.stat-number, .stat-label,
.footer h5 {
    text-align: left !important;
}

/* ═══════ Modal galería proyectos: botones prev/next ═══════ */
.project-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: var(--gold);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}
.project-gallery-nav:hover,
.project-gallery-nav:focus {
    background: var(--gold);
    color: var(--black);
    outline: none;
}
.project-gallery-prev { left: 10px; }
.project-gallery-next { right: 10px; }

@media (max-width: 576px) {
    .project-gallery-nav { width: 36px; height: 36px; font-size: 1.1rem; }
    .project-gallery-prev { left: 4px; }
    .project-gallery-next { right: 4px; }
}