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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #343434; 
}

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

/* Header */
header {
    background-color: #343434;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
}

/* Navegación */
nav {
    position: relative;
}

nav ul {
    display: flex;
    list-style-type: none;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#language-selector {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #555;
    color: white;
    font-size: 14px;
}

/* Botón del menú hamburguesa */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación del menú hamburguesa */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: #ffffff;
}

/* Video en Hero */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
}

.hero-overlay {
    z-index: 1;
    background-color: rgba(0, 75, 135, 0.5);
    padding: 40px;
    border-radius: 10px;
}

#hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: #8dc63f;
    color: #ffffff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #75a928;
}

/* About Us Section */
.about-section {
    background-color: #2b2b2b;
    padding: 80px 0;
    color: #ffffff;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #8dc63f;
}

.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    text-align: justify;
    flex: 1;
    min-width: 280px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
}

.about-text ul {
    margin-top: 20px;
    list-style: none;
    padding-left: 0;
}

.about-text ul li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.about-image {
    flex: 1;
    min-width: 280px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

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

#servicios h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #8dc63f;
}

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

.service-item {
    background-color: #2b2b2b;
    color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item h3 {
    padding: 20px 20px 10px;
    font-size: 1.3em;
    color: #8dc63f;
}

.service-item ul {
    padding: 0 20px 20px;
    list-style: none;
}

.service-item ul li {
    margin-bottom: 8px;
    color: #ffffff;
}

.service-item ul li a {
    color: #ffffff;
    text-decoration: none;
}

/* Ofertas */
#ofertas {
    padding: 80px 0;
    background-color: #2b2b2b;
}

#ofertas h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #8dc63f;
}

.offer-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 20px 0;
}

.offer-item {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
    background-color: #343434;
    color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.offer-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.offer-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #8dc63f;
}

.offer-item p {
    color: #cccccc;
}

/* Testimonios */
#testimonios {
    padding: 80px 0;
    background-color: #343434;
}

#testimonios h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #8dc63f;
}

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

.testimonial-item {
    background-color: #2b2b2b;
    color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.testimonial-item cite {
    font-weight: bold;
    color: #8dc63f;
}

/* Cotización */
#cotizacion {
    padding: 80px 0;
    background-color: #2b2b2b;
}

#cotizacion h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #8dc63f;
}

#quote-form {
    display: grid;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

#quote-form input,
#quote-form select,
#quote-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #343434;
    color: #ffffff;
    font-size: 16px;
}

#quote-form input::placeholder,
#quote-form textarea::placeholder {
    color: #cccccc;
}

#quote-form select {
    color: #ffffff;
}

#quote-form select option {
    background-color: #343434;
    color: #ffffff;
}

#quote-form button {
    background-color: #8dc63f;
    color: #ffffff;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#quote-form button:hover {
    background-color: #75a928;
}

#quote-form button:disabled {
    background-color: #666;
    cursor: not-allowed;
}

/* Mensajes de formulario */
#form-message {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    border-left: 5px solid #8dc63f;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border-left: 5px solid #dc3545;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    margin-right: 20px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #8dc63f;
}

.footer-section ul {
    list-style-type: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #8dc63f;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #8dc63f;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header responsive */
    header .container {
        padding: 10px 20px;
    }

    .logo img {
        height: 40px;
    }

    /* Mostrar botón hamburguesa */
    .menu-toggle {
        display: flex;
    }

    /* Ocultar menú por defecto en móvil */
    nav ul {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #343434;
        flex-direction: column;
        width: 250px;
        padding: 20px 0;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    /* Mostrar menú cuando tiene clase 'show' */
    nav ul.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul li {
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    .language-item {
        padding: 15px 20px;
    }

    #language-selector {
        width: 100%;
        margin-top: 10px;
    }

    /* Hero responsive */
    #hero h1 {
        font-size: 2em;
    }

    #hero .container {
        padding: 20px;
    }

    .hero-overlay {
        padding: 20px;
    }

    /* Grids responsive */
    .service-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        margin-right: 0;
    }

    /* Imágenes responsive */
    .service-item img,
    .about-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .offer-item {
        width: 280px;
    }

    /* Ajustes de tipografía */
    h2 {
        font-size: 2em !important;
    }

    .service-item h3 {
        font-size: 1.2em;
    }
}

/* Estilos adicionales para tabletas */
@media (min-width: 769px) and (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #hero h1 {
        font-size: 2.5em;
    }
}

/* Estilos para Google Form */
.google-form-embed {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.google-form-embed iframe {
    max-width: 100%;
    border: none;
    border-radius: 10px;
}
