/* Reset y configuraciones generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #111;
    color: #f0f0f0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Colores */
.gold {
    color: #d4af37;
}

.gold-icon {
    color: #d4af37;
    margin-right: 10px;
}

/* Navbar */
.navbar {
    background-color: #1a1a1a;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 5px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.tagline {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: #d4af37;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d4af37;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../fotos/WhatsApp Image 2026-03-17 at 19.49.09.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.hero-overlay {
    width: 100%;
    padding: 40px 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 30px;
    color: #ccc;
}

.btn-hero {
    display: inline-block;
    background-color: #d4af37;
    color: #111;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid #d4af37;
}

.btn-hero:hover {
    background-color: transparent;
    color: #d4af37;
}

/* Secciones comunes */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-family: 'Playfair Display', serif;
}

/* Servicios */
.servicios {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.servicio-card {
    background-color: #222;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #d4af37;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.servicio-icon {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 20px;
}

.servicio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.servicio-card p {
    color: #aaa;
}

/* Sobre Nosotros */
.sobre-nosotros {
    padding: 80px 0;
    position: relative;
    background-image: url('../fotos/WhatsApp Image 2026-03-17 at 19.48.58.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sobre-nosotros::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.sobre-nosotros .container {
    position: relative;
    z-index: 2;
}

.sobre-texto {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
    text-align: center;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Expertos en PVC y Aluminio */
.expertos-pvc {
    padding: 80px 0;
    position: relative;
    background-image: url('../fotos/WhatsApp Image 2026-03-17 at 19.49.09.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.expertos-pvc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.expertos-pvc .container {
    position: relative;
    z-index: 2;
}

.expertos-texto {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
    text-align: center;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Carrusel */
.carrusel-section {
    padding: 80px 0;
    background-color: #111;
}

.carrusel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carrusel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.carrusel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carrusel-slide {
    min-width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(212, 175, 55, 0.8);
    border: none;
    color: #111;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.carrusel-btn:hover {
    background-color: rgba(212, 175, 55, 1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.carrusel-dots {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #555;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #d4af37;
}

/* Contacto */
.contacto {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contacto-info h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.contacto-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 5px;
    color: #f0f0f0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.btn-form {
    background-color: #d4af37;
    color: #111;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-form:hover {
    background-color: #c19b2a;
}

/* Mapa */
.mapa-container {
    margin-top: 60px;
    text-align: center;
}

.mapa-title {
    font-size: 2rem;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
}

.mapa {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 2px solid #333;
}

.mapa iframe {
    display: block;
}

/* Footer */
.footer {
    background-color: #111;
    padding: 40px 0 20px;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 1.8rem;
}

.footer-social a {
    display: inline-block;
    color: #aaa;
    background-color: #222;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-left: 10px;
    transition: all 0.3s;
}

.footer-social a:hover {
    color: #111;
    background-color: #d4af37;
}

.copyright {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Botón WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}

/* Popup Cookies */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 400px;
    max-width: calc(100% - 60px);
    background-color: #1a1a1a;
    border-left: 5px solid #d4af37;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-text h3 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.btn-cookie {
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

.accept {
    background-color: #d4af37;
    color: #111;
}

.reject {
    background-color: #333;
    color: #f0f0f0;
}

.accept:hover {
    background-color: #c19b2a;
}

.reject:hover {
    background-color: #444;
}

.cookie-link {
    color: #d4af37;
    text-decoration: none;
    font-size: 0.9rem;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .carrusel-slide {
        height: 400px;
    }
    .cookie-popup {
        left: 20px;
        bottom: 20px;
        width: calc(100% - 40px);
    }
    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    .footer-social a {
        margin: 0 5px;
    }
    .logo-img {
        height: 50px;
    }
    .logo h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .btn-hero {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .carrusel-slide {
        height: 300px;
    }
    .servicio-card {
        padding: 20px;
    }
    .logo-img {
        height: 40px;
    }
    .logo h1 {
        font-size: 1.3rem;
    }
    .mapa-title {
        font-size: 1.6rem;
    }
    .mapa iframe {
        height: 300px;
    }
}