/* 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;
}

.brand 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 */
#home {
    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;
}

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

#home 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 */
#services {
    padding: 80px 0;
    background-color: #343434;
}

#services 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 */
#offers {
    padding: 80px 0;
    background-color: #2b2b2b;
}

#offers 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 */
#testimonials {
    padding: 80px 0;
    background-color: #343434;
}

#testimonials 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 */
#quote {
    padding: 80px 0;
    background-color: #2b2b2b;
}

#quote 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;
}

/* Accessible labels that are only visible to screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-field {
    display: flex;
    flex-direction: column;
}

#quote-form textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

#quote-form .error {
    border-color: #dc3545;
}

.field-error {
    color: #ff8a95;
    font-size: 14px;
    margin-top: 6px;
}

/* Honeypot anti-spam field: hidden from humans */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.consent-field label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: #dddddd;
    cursor: pointer;
}

#quote-form .consent-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #8dc63f;
}

.privacy-note {
    font-size: 13px;
    color: #bbbbbb;
    text-align: center;
}

/* Mensajes de formulario */
#form-message {
    max-width: 600px;
    margin: 20px auto 0;
    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,
.footer-section .footer-title {
    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: 1000px) {
    /* Header responsive */
    header .container {
        padding: 10px 20px;
    }

    .brand 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 */
    #home h1 {
        font-size: 2em;
    }

    #home .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);
    }

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

/* ---------- Brand, navigation and layout additions ---------- */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
}

.brand img {
    height: 50px;
    width: auto;
}

.brand-name {
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.brand-name span {
    color: #8dc63f;
}

nav ul li a.nav-cta {
    background-color: #8dc63f;
}

nav ul li a.nav-cta:hover {
    background-color: #75a928;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: #8dc63f;
    color: #ffffff;
    padding: 10px 15px;
    font-weight: bold;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
}

.hero-overlay {
    max-width: 900px;
    background-color: rgba(0, 0, 0, 0.45);
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.cta-secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
}

.cta-button.cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.section-intro {
    max-width: 800px;
    margin: -20px auto 30px;
    text-align: center;
    color: #dddddd;
    font-size: 1.05em;
}

.testimonial-item blockquote {
    margin: 0;
}

footer address {
    font-style: normal;
}

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

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

.social-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1em;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
}

@media (min-width: 1001px) and (max-width: 1200px) {
    nav ul li {
        margin-left: 6px;
    }

    nav ul li a {
        padding: 8px 8px;
        font-size: 0.95em;
    }
}

@media (max-width: 768px) {
    .brand img {
        height: 40px;
    }

    .brand-name {
        font-size: 1.1em;
    }

    #home h1 {
        font-size: 1.7em;
    }

    #home p {
        font-size: 1em;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.not-found {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 20px;
}

.not-found h1 {
    color: #8dc63f;
}

/* Keep menu items on one line */
nav ul li a {
    white-space: nowrap;
}

@media (min-width: 1001px) and (max-width: 1440px) {
    nav ul li {
        margin-left: 4px;
    }

    nav ul li a {
        padding: 8px 9px;
        font-size: 0.92em;
    }

    .brand-name {
        font-size: 1.15em;
    }
}

@media (min-width: 1001px) and (max-width: 1120px) {
    .brand-name {
        display: none;
    }
}

.footer-section .footer-title {
    font-size: 1.2em !important;
}

/* ---------- Reviews carousel ---------- */
.reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: -20px 0 30px;
    font-size: 1.05em;
}

.reviews-summary[hidden] {
    display: none;
}

.reviews-rating {
    font-size: 1.6em;
    font-weight: bold;
}

.stars {
    color: #fbbc04;
    letter-spacing: 2px;
}

.reviews-count {
    color: #cccccc;
}

.google-g {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    color: #4285f4;
    font-weight: bold;
    font-family: Arial, sans-serif;
    flex-shrink: 0;
}

.reviews-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 6px 2px 10px;
    flex: 1;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track:focus-visible {
    outline: 2px solid #8dc63f;
    outline-offset: 4px;
}

.review-card {
    flex: 0 0 calc((100% - 40px) / 3);
    scroll-snap-align: start;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-card blockquote {
    margin: 0;
    flex: 1;
}

.review-text {
    font-style: normal;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-avatar-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #8dc63f;
    color: #ffffff;
    font-weight: bold;
}

.review-who {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.review-author {
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.review-author:hover,
.review-link:hover {
    color: #8dc63f;
}

.review-time {
    font-size: 0.85em;
    color: #aaaaaa;
}

.review-link {
    color: #cccccc;
    font-size: 0.9em;
}

.carousel-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #2b2b2b;
    color: #ffffff;
    font-size: 1.8em;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background: #8dc63f;
}

.carousel-btn[hidden],
.carousel-dots[hidden] {
    display: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: #666666;
    cursor: pointer;
}

.carousel-dot.active {
    background: #8dc63f;
    transform: scale(1.3);
}

.reviews-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.reviews-attribution {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85em;
    color: #aaaaaa;
}

@media (max-width: 1000px) {
    .review-card {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (max-width: 640px) {
    .review-card {
        flex-basis: 100%;
    }

    .carousel-btn {
        display: none;
    }
}

.reviews-actions .cta-button {
    text-align: center;
}

.google-review .review-text {
    font-style: normal;
}
