/* Color verde extraído del logo */
:root {
    --verde-logo: #8dc42d;
}

html, body {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #222;
}

header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

.logo {
    height: 48px;
    width: auto;
    border-radius: 8px;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--verde-logo);
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    transition: max-height 0.3s ease;
}

.nav-links li a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.nav-links li a:hover,
.nav-links li a:focus {
    background: var(--verde-logo);
    color: #fff;
}

@media (max-width: 900px) {
    .navbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    .logo-link {
        flex: 0 0 auto;
    }
    .menu-toggle {
        display: block;
        margin-left: auto;
        z-index: 1002;
    }
    .nav-links {
        display: none;
    }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1001;
        gap: 1rem;
        padding: 1rem 0;
    }
    .nav-social {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0.5rem 0 0 0;
        position: absolute;
        left: 0;
        top: 60px;
        z-index: 1000;
        padding-left: 16px;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .trabajo-item img {
        width: auto;
        height: 100vw;
        max-height: 90vh;
        object-fit: contain;
        display: block;
        margin: 0 auto;
        border-radius: 0;
    }

    .trabajo-item {
        padding-left: 0;
        padding-right: 0;
    }

    .carousel-slide {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 90vh; /* Fuerza altura del slide */
    }
}


main {
    min-height: 60vh;
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    padding: 1rem;
}

footer {
    background: var(--verde-logo);
    color: #fff;
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-section {
    flex: 1 1 300px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-content a:hover {
    color: #222;
    text-decoration: none;
}

.footer-content strong {
    font-size: 1.1em;
}

.footer-content strong.contacto::after {
    content: "";
}

.footer-content strong:not(.contacto)::after {
    content: "";
}

.footer-content .marcas {
    margin-top: 1rem;
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #eee;
    text-align: center;
}

/* Formulario de contacto */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--verde-logo);
    box-shadow: 0 0 0 2px rgba(141, 196, 45, 0.2);
}
.contact-form input.error,
.contact-form textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}
.contact-form button {
    background: var(--verde-logo);
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-form button:hover {
    background: #5a8c2a;
}

/* Galería de trabajos */
.galeria-trabajos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
@media (max-width: 900px) {
    .galeria-trabajos {
        grid-template-columns: 1fr;
    }
}
.trabajo-item {
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.trabajo-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 20px rgba(39,174,96,0.15);
}
.trabajo-item img {
    max-width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.trabajo-item p {
    margin: 0;
    color: #222;
    font-size: 1rem;
}

/* Modal para imágenes */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover {
    color: #bbb;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.trabajo-item img {
    cursor: pointer;
    transition: transform 0.2s;
}

.trabajo-item img:hover {
    transform: scale(1.05);
}

/* Página Nosotros */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    line-height: 1.6;
    font-size: 1.1rem;
}

.about-text h2 {
    color: var(--verde-logo);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.services-list li {
    background: #f8f8f8;
    margin: 0.8rem 0;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--verde-logo);
    transition: transform 0.2s, box-shadow 0.2s;
}

.services-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(141, 196, 45, 0.15);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--verde-logo);
}

/* Página de Inicio */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin: -1rem -1rem 3rem -1rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--verde-logo);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--verde-logo);
    color: white;
}

.btn-primary:hover {
    background: #5a8c2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 196, 45, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--verde-logo);
    border: 2px solid var(--verde-logo);
}

.btn-secondary:hover {
    background: var(--verde-logo);
    color: white;
    transform: translateY(-2px);
}

/* Servicios Destacados */
.servicios-destacados {
    margin: 3rem 0;
}

.servicios-destacados h2 {
    text-align: center;
    color: #222;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.servicio-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(141, 196, 45, 0.15);
}

.servicio-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.servicio-icon img {
    width: 30%
}

.servicio-card h3 {
    color: var(--verde-logo);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.servicio-card p {
    color: #666;
    line-height: 1.5;
}

/* Por qué elegirnos */
.por-que-elegirnos {
    background: #f8f9fa;
    padding: 3rem 2rem;
    margin: 3rem -1rem;
    border-radius: 20px;
}

.por-que-elegirnos h2 {
    text-align: center;
    color: #222;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.ventaja {
    text-align: center;
    padding: 1.5rem;
}

.ventaja h3 {
    color: var(--verde-logo);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.ventaja p {
    color: #666;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--verde-logo) 0%, #5a8c2a 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem -1rem -1rem -1rem;
    border-radius: 20px 20px 0 0;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: white;
    color: var(--verde-logo);
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.cta-section .btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .servicios-grid,
    .ventajas-grid {
        grid-template-columns: 1fr;
    }
    .por-que-elegirnos,
    .cta-section {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }

    .servicio-icon img {
        width: 20%
    }
}

/* Contacto - Recuadros bonitos */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}
.contact-card {
    background: #f8f9fa;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(141,196,45,0.08);
    padding: 1.5rem 2rem;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid #e0e0e0;
}
.contact-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 6px 24px rgba(141,196,45,0.18);
    border-color: var(--verde-logo);
}
.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 0.7rem;
}

.contact-card {
    color: var(--verde-logo);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-card:hover {
    color: #222;
    text-decoration: none;
}





/* Hacer más grandes los dos puntos en los textos estáticos */
.contact-card span.contact-icon + a::before,
.footer-content strong::after {
    content: "";
}

/* Ajuste para que no se dupliquen los dos puntos si ya existen */
.contact-card a::before {
    display: none;
}

@media (max-width: 700px) {
    .contact-cards {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .contact-card {
        width: 90vw;
        min-width: unset;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
}

.footer-content,
.footer-content p,
.footer-content strong,
.footer-content a {
    color: #fff !important;
}
.footer-content a:hover {
    color: #222 !important;
} 

/* Carrusel de trabajos */
.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1rem auto;
    overflow: hidden;
    border-radius: 10px;
    background: #f8f8f8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transition: opacity 0.4s;
}
.carousel-slide.active {
    display: flex;
    position: relative;
    opacity: 1;
    z-index: 2;
}
.carousel-img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(141,196,45,0.07);
    background: #eaeaea;
    display: block;
    margin: 0 auto;
}
.carousel-numero {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #666;
    background: #fff;
    border-radius: 6px;
    padding: 0.2rem 0.7rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    font-weight: 500;
}
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(141,196,45,0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}
.carousel-prev:hover,
.carousel-next:hover {
    background: var(--verde-logo);
    opacity: 1;
}
.carousel-prev {
    left: 10px;
}
.carousel-next {
    right: 10px;
}
@media (max-width: 900px) {
    .carousel {
        max-width: 98vw;
        min-height: 200px;
    }
    .carousel-img {
        max-width: 98vw;
        max-height: 60vh;
    }
}
@media (max-width: 600px) {
    .carousel, .modal-carousel .carousel-slide {
        width: 100%;
        min-width: 0;
        max-width: 100vw;
        background: #fff;
        box-shadow: none;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        height: auto;
        min-height: 0;
        max-height: 100vh;
    }
    .carousel-slide, .modal-carousel .carousel-slide {
        display: none !important;
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
        align-items: center;
        justify-content: center;
        background: transparent;
        box-shadow: none;
    }
    .carousel-slide.active, .modal-carousel .carousel-slide.active {
        display: flex !important;
        z-index: 2;
    }
    .carousel-img, .modal-carousel .carousel-img {
        width: 80%;
        height: auto;
        max-height: 100vh;
        object-fit: contain;
        border-radius: 0;
        background: #fff;
        margin: 0 auto;
        display: block;
    }
    .carousel-prev, .carousel-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(141,196,45,0.8);
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 3;
        transition: background 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.85;
    }
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
    .carousel-numero {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0,0,0,0.7);
        color: #fff;
        padding: 0.3rem 1rem;
        border-radius: 8px;
        font-size: 1.1rem;
        z-index: 4;
    }
}
/* Modal carrusel */
.modal-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}
.modal-carousel .carousel-slide {
    position: relative;
    width: 90vw;
    max-width: 900px;
    height: 80vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.modal-carousel .carousel-img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    background: #eaeaea;
    margin: 0 auto;
    display: block;
} 

/* Iconos sociales en el nav */
.nav-social {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: 1rem;
}
.nav-icon svg {
    color: var(--verde-logo);
    stroke: var(--verde-logo);
    transition: color 0.2s, stroke 0.2s;
}
.nav-icon:hover svg {
    color: #222;
    stroke: #222;
}

/* Responsive: iconos debajo del menú en móvil */
@media (max-width: 900px) {
    .nav-social {
        margin: 1rem 0 0 0;
        justify-content: flex-start;
    }
}

/* Iconos sociales en el footer */
.footer-social {
    margin-top: 1rem;
}
.footer-social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 0.5rem;
}
.footer-icon svg {
    color: #fff;
    stroke: #fff;
    transition: color 0.2s, stroke 0.2s;
}
.footer-icon:hover svg {
    color: var(--verde-logo);
    stroke: var(--verde-logo);
    background: #fff;
    border-radius: 50%;
} 