/* =========================================
   1. RESET Y VARIABLES GLOBALES
   ========================================= */
:root {
    --color-primary: #334e6f;
    --color-secondary: #d35400;
    --color-text: #666;
    --color-title: #2c3e50;
    --bg-light: #f9f9f9;
    --bg-blue-header: #3b5998;
    
    /* Colores Servicios */
    --serv-red: #ed1c24;
    --serv-black: #1d1d1b;
    --serv-green: #009640;
    --serv-blue: #2e3192;
    --serv-gold: #afa066;
    
    /* ANCHOS */
    --container-width-normal: 1200px;
    --container-width-wide: 1600px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Roboto', sans-serif; 
    color: var(--color-text); 
    line-height: 1.6; 
    overflow-x: hidden; 
    width: 100%;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }

/* Clases de utilidad */
.container-1200 {
    max-width: var(--container-width-normal);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. HEADER Y NAVEGACIÓN (COMÚN)
   ========================================= */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 5px 0;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%; 
    max-width: 1700px; 
    margin: 0 auto;
    padding: 10px 0;
}

/* Logo */
.logo img { height: 90px; transition: height 0.3s; } 

/* Navegación */
nav ul { display: flex; align-items: center; gap: 30px; }
nav ul li { position: relative; }

nav ul li a {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 17px;
    text-transform: uppercase;
    padding: 15px 0;
}
nav ul li a:hover { color: var(--color-secondary); }

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 260px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%;
    left: 0;
    border-top: 4px solid var(--color-primary);
}
.dropdown-content a {
    color: black;
    padding: 14px 18px;
    text-decoration: none;
    display: block;
    text-transform: none;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}
.dropdown-content a:hover { background-color: #f1f1f1; color: var(--color-primary); }
.dropdown:hover .dropdown-content { display: block; }

/* Iconos Header */
.nav-icons { display: flex; gap: 20px; align-items: center; margin-left: 20px; }
.nav-icons a { color: var(--color-primary); font-size: 1.5rem; }
.nav-icons a:hover { color: var(--color-secondary); }
.flag { width: 30px; height: auto; border: 1px solid #ddd; vertical-align: middle; }
.menu-toggle { display: none; font-size: 28px; cursor: pointer; padding: 10px; color: var(--color-primary); }


/* =========================================
   3. ESTILOS ESPECÍFICOS DE PÁGINAS INTERNAS
   (Trabajos Verticales, Pintura, etc.)
   ========================================= */

/* Hero Pequeño (Banner superior) */
.page-header {
    background-color: #ddd;
    /* La imagen se define en el HTML inline */
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.page-header-overlay { background-color: rgba(0,0,0,0.4); position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.page-header-content { z-index: 2; color: white; padding: 20px; }
.page-header-content h1 { font-size: 2.5rem; text-transform: uppercase; margin-bottom: 10px; font-weight: 700; }
.page-header-content p { font-size: 1rem; max-width: 800px; margin: 0 auto; }

/* Galerías de imágenes (Grid) */
.top-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas por defecto */
    gap: 20px;
    margin: 40px auto;
    max-width: var(--container-width-normal);
    padding: 0 20px;
}
.gallery-item img {
    width: 100%;
    height: 250px; 
    object-fit: cover; 
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Estructura de contenido (Izquierda texto / Derecha info) */
.main-content-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: var(--container-width-normal);
    margin: 0 auto 60px;
    padding: 0 20px;
}
.content-left { flex: 2; min-width: 300px; }
.content-left h2 { color: #333; font-size: 1.2rem; text-transform: uppercase; margin-bottom: 20px; font-weight: 700; }
.content-left p { margin-bottom: 15px; text-align: justify; font-size: 0.95rem; }

/* Botón Contacto Azul */
.btn-contact-blue {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 10px 25px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-top: 15px;
    border-radius: 2px;
}
.btn-contact-blue:hover { background-color: var(--color-secondary); }

/* Caja de Información Derecha */
.content-right { flex: 1; min-width: 300px; }
.info-box {
    border: 1px solid #e1e1e1;
    border-radius: 15px;
    padding: 30px;
    background: #fff;
}
.feature-list li { display: flex; align-items: flex-start; margin-bottom: 20px; }
.feature-list li:last-child { margin-bottom: 0; }
.feature-icon { color: var(--color-primary); font-size: 1.2rem; margin-right: 15px; margin-top: 2px; }
.feature-text strong { display: block; color: var(--color-primary); font-size: 0.95rem; margin-bottom: 2px; }
.feature-text span { font-size: 0.85rem; color: #777; line-height: 1.4; display: block; }


/* =========================================
   4. ESTILOS DEL INDEX (Hero Grande, Servicios, etc.)
   ========================================= */
.hero {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: #ddd;
    /* Imagen inline en HTML */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero-content { z-index: 2; padding: 0 20px; }
.hero-title-box { background-color: rgba(100, 100, 100, 0.7); color: #fff; padding: 15px 30px; display: inline-block; margin-bottom: 5px; }
.hero-title-box h1 { font-size: 2.5rem; text-transform: uppercase; margin: 0; font-weight: 700; }
.hero-subtitle-box { background-color: rgba(100, 100, 100, 0.7); color: #fff; padding: 10px 20px; display: inline-block; }
.hero-subtitle-box p { margin: 0; font-size: 1.2rem; }

.about-header-parallax {
    background-color: var(--bg-blue-header);
    background-image: linear-gradient(var(--bg-blue-header), var(--bg-blue-header)), url('img/banner.png');
    background-blend-mode: multiply;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white; text-align: center; padding: 80px 20px; margin-bottom: 0;
}
.about-header-parallax h2 { font-size: 2.2rem; font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 2px; }
.about-header-parallax p { font-size: 1rem; opacity: 0.9; letter-spacing: 1px; }

.about-section { background-color: #f4f4f4; padding-top: 0; }
.about-content { display: flex; flex-wrap: wrap; margin: 0 auto 50px; align-items: flex-start; width: 95%; max-width: var(--container-width-wide); padding: 50px 10px 0; }
.about-col { flex: 1; padding: 20px; min-width: 300px; text-align: center; }
.icon-circle { width: 80px; height: 80px; border: 2px solid var(--color-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; color: var(--color-primary); }
.about-col h3 { color: var(--color-primary); margin-bottom: 15px; font-size: 1.1rem; text-transform: uppercase; font-weight: 700; }
.about-col p { font-size: 0.9rem; text-align: justify; color: #555; margin-bottom: 15px; }
.about-image img { width: 100%; height: auto; border-radius: 2px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-bottom: 25px; }
.about-center-text { font-size: 0.9rem; color: #555; text-align: justify; }
.btn-outline { display: inline-block; margin-top: 20px; padding: 12px 30px; background: var(--color-primary); color: white; text-transform: uppercase; font-size: 0.9rem; border: none; cursor: pointer; }
.btn-outline:hover { background: var(--color-secondary); }

.jotun-section-bg { background-color: #fff; border-top: 1px solid #eee; padding: 40px 0; }
.jotun-container { display: flex; align-items: center; justify-content: space-between; width: 95%; max-width: var(--container-width-wide); margin: 0 auto; }
.jotun-logo-box { flex: 0 0 300px; margin-right: 40px; }
.jotun-text-box { flex: 1; border-left: 5px solid var(--color-primary); padding-left: 30px; color: #777; font-size: 1rem; font-style: italic; }
.jotun-text-box strong { color: var(--color-primary); font-style: normal; }

.services-full-width { width: 100%; display: flex; flex-wrap: wrap; }
.service-box { flex: 1; min-width: 200px; padding: 50px 20px; color: white; text-align: center; transition: transform 0.3s; }
.service-box:hover { transform: translateY(-5px); z-index: 2; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.service-box i { font-size: 2.5rem; margin-bottom: 20px; display: block; }
.service-box h4 { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; margin-bottom: 25px; height: 35px; display: flex; align-items: center; justify-content: center; }
.service-box a { color: white; text-decoration: underline; font-size: 0.85rem; }
.bg-red { background-color: var(--serv-red); }
.bg-black { background-color: var(--serv-black); }
.bg-green { background-color: var(--serv-green); }
.bg-blue { background-color: var(--serv-blue); }
.bg-gold { background-color: var(--serv-gold); }

.financing-section { background-color: var(--bg-blue-header); background-image: linear-gradient(var(--bg-blue-header), var(--bg-blue-header)), url('img/banner.png'); background-blend-mode: multiply; background-size: cover; background-position: center; color: white; text-align: center; padding: 80px 20px; }
.financing-section h2 { font-weight: 300; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; font-size: 2rem; }
.financing-section p { margin-bottom: 10px; font-size: 1.1rem; }
.btn-outline-white { display: inline-block; margin-top: 30px; padding: 12px 30px; border: 2px solid white; color: white; text-transform: uppercase; font-size: 0.9rem; }
.btn-outline-white:hover { background: white; color: var(--color-primary); }

.contact-container-full { display: flex; flex-wrap: wrap; background-color: #fff; }
.map-box-wide { flex: 2; min-width: 300px; height: 550px; }
.map-box-wide iframe { width: 100%; height: 100%; border: 0; }
.contact-info-narrow { flex: 1; min-width: 350px; padding: 50px; background-color: #f9f9f9; display: flex; flex-direction: column; justify-content: center; }
.contact-info-wrapper { width: 100%; max-width: 450px; margin: 0 auto; }
.info-item { display: flex; margin-bottom: 35px; width: 100%; }
.info-icon { width: 45px; height: 45px; background-color: var(--color-title); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 20px; flex-shrink: 0; font-size: 1.2rem; }
.info-text h5 { color: #000; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.info-text p, .info-text a { color: var(--color-primary); font-size: 0.95rem; display: block; line-height: 1.5; }

/* --- FOOTER Y FLOTANTES --- */
footer { background-color: #1a1a1a; color: #ccc; padding: 50px 0 30px; font-size: 0.9rem; text-align: center; }
.footer-grid-centered { display: flex; flex-wrap: wrap; justify-content: space-between; width: 90%; max-width: 1800px; margin: 0 auto; }
.footer-col { flex: 1; margin-bottom: 20px; text-align: center; min-width: 250px; }
.footer-col h4 { color: #fff; text-transform: uppercase; margin-bottom: 20px; font-weight: 700; letter-spacing: 1px; font-size: 1rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: white; }
.footer-social-icons a { display: inline-block; font-size: 1.5rem; color: #ccc; margin: 0 10px; transition: 0.3s; }
.footer-social-icons a:hover { color: white; }
.footer-bottom { border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; display: flex; justify-content: center; align-items: center; }
.copyright-text { font-size: 0.85rem; color: #888; }

#scrollTopBtn { position: fixed; bottom: 20px; right: 20px; background: #333; color: white; width: 45px; height: 45px; border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s, background 0.3s; }
#scrollTopBtn.show { opacity: 1; pointer-events: auto; }
#scrollTopBtn:hover { background: var(--color-primary); }

.whatsapp-btn { position: fixed; bottom: 20px; left: 20px; background-color: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 10000; transition: transform 0.3s; }
.whatsapp-btn:hover { transform: scale(1.1); color: white; }

/* =========================================
   5. MEDIA QUERIES (MÓVIL)
   ========================================= */
@media (max-width: 1200px) {
     .logo img { height: 70px; }
     nav ul li a { font-size: 16px; padding: 10px 0; }
     .nav-icons a { font-size: 1.4rem; }
}

@media (max-width: 992px) {
    header { padding: 5px 0; }
    .top-bar { flex-wrap: wrap; justify-content: space-between; padding: 5px 15px; }
    .logo img { height: 50px; } /* Logo móvil más pequeño */
    .menu-toggle { display: block; order: 3; font-size: 24px; }
    .logo { order: 1; }
    .nav-icons { order: 2; margin-left: auto; margin-right: 15px; gap: 15px; }
    .nav-icons a { font-size: 1.2rem; }
    .flag { width: 25px; }

    nav { order: 4; width: 100%; }
    nav ul { display: none; width: 100%; flex-direction: column; background: white; margin-top: 10px; padding-bottom: 10px; border-top: 1px solid #eee; }
    nav ul.active { display: flex; }
    nav ul li { width: 100%; text-align: center; }
    nav ul li a { padding: 10px 0; display: block; font-size: 16px; }
    
    .dropdown-content { position: static; box-shadow: none; background-color: #f1f1f1; border-top: none; min-width: 100%; }
    .dropdown-content a { padding: 10px; border-bottom: 1px solid #ddd; }

    .about-col { flex: 100%; margin-bottom: 30px; }
    .jotun-container { flex-direction: column; text-align: center; }
    .jotun-logo-box { margin-right: 0; margin-bottom: 30px; }
    .jotun-text-box { border-left: none; border-top: 5px solid var(--color-primary); padding-left: 0; padding-top: 30px; }
    .footer-grid-centered { flex-direction: column; align-items: center; gap: 40px; }
}

@media (max-width: 768px) {
    .contact-container-full { flex-direction: column-reverse; }
    .map-box-wide { height: 350px; }
    .contact-info-narrow { padding: 40px 20px; }
    
    /* Ajustes específicos de páginas internas */
    .top-gallery { grid-template-columns: repeat(2, 1fr); } /* Galería 2 columnas en tablet/móvil grande */
    .main-content-layout { flex-direction: column; } /* Contenido apilado en móvil */
}

@media (max-width: 480px) {
    .top-gallery { grid-template-columns: 1fr; } /* Galería 1 columna en móvil pequeño */
}