/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2E5A3C;
    --primary-light: #4A7A5A;
    --primary-dark: #1E3D2A;
    --accent: #8B6B4A;
    --accent-light: #B5926D;
    --cream: #F5F0E6;
    --white: #FFFFFF;
    --gray: #6B7280;
    --light-gray: #E5E7EB;
    --shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #1F2937;
    background-color: var(--cream);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(46, 90, 60, 0.92);
    backdrop-filter: blur(8px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: -0.5px;
}
.logo-text span {
    color: var(--accent-light);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-light);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}
.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 700;
    transition: var(--transition);
}

.nav-cta::after {
    display: none !important;
}
.nav-cta:hover {
    background: var(--accent-light);
    transform: scale(1.03);
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}
.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 4px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 61, 42, 0.55);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.8rem;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-content h1 span {
    color: var(--accent-light);
}

.hero-content .tagline {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(139, 107, 74, 0.35);
}
.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(139, 107, 74, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin-bottom: 48px;
}

.text-center {
    text-align: center;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ===== SERVICIOS ===== */
.service-carousel {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 30px;
    margin-top: 20px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tire-wheel {
    position: absolute;
    width: 320px;
    height: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 14s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.30;
    border-radius: 50%;
    background: #3a3a3a;
    box-shadow: 0 0 0 6px #1a1a1a, 0 0 0 12px #2a2a2a;
}

.tire-wheel::before {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, #2a2a2a 0deg 6deg, #5a5a5a 6deg 10deg, #2a2a2a 10deg 16deg);
    z-index: -1;
    mask: radial-gradient(circle at center, transparent 65%, black 66%, black 85%, transparent 86%);
    -webkit-mask: radial-gradient(circle at center, transparent 65%, black 66%, black 85%, transparent 86%);
}

.tire-wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 30%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #888, #444 60%, #222);
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.6), 0 0 0 8px #1a1a1a, 0 0 0 12px #333;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    padding: 30px 40px;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: opacity 0.4s ease;
}

.carousel-content h3 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.carousel-content p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0;
}

.carousel-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.carousel-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dots .dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* ===== SOBRE NOSOTROS ===== */
#sobre {
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.about-text .highlight {
    color: var(--accent);
    font-weight: 700;
}

.about-text p {
    color: #374151;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 24px;
}

.about-stats div {
    text-align: center;
}

.about-stats .number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--primary);
}

.about-stats .label {
    font-size: 0.9rem;
    color: var(--gray);
}

.about-media {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

/* ===== EQUIPMENT RENTAL ===== */
#rental {
    background: var(--white);
    padding: 80px 0;
}

.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.feature-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #1a1a1a;
}

.feature-image img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.feature-text h2 {
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.feature-text > p {
    color: #374151;
    margin-bottom: 20px;
    line-height: 1.8;
}

.rental-item {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--cream);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}

.rental-item h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.rental-item p {
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.rental-item ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rental-item ul li {
    background: var(--white);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--primary);
    border: 1px solid var(--light-gray);
    display: inline-block;
}

.rental-note {
    font-style: italic;
    color: var(--gray);
    font-size: 0.95rem;
    margin-top: 8px;
}

/* ===== VIDEO ===== */
#video-section {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0;
}

#video-section .section-title {
    color: var(--white);
}
#video-section .section-subtitle {
    color: rgba(255,255,255,0.7);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #000;
}

.video-container video {
    width: 100%;
    display: block;
}

/* ============================================================
   PROYECTOS - CARRUSEL "BURBUJA" (AJUSTE AL TAMAÑO DE LA IMAGEN)
   ============================================================ */
.projects-list {
    background: var(--cream);
    padding: 60px 0;
}

.projects-list .section-title {
    margin-bottom: 8px;
}
.projects-list .section-subtitle {
    margin-bottom: 40px;
}

.project-item {
    margin-bottom: 50px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.project-carousel {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    width: 100%;
    margin: 0 auto;
    box-shadow: none;
    border: none;
}

.project-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    align-items: flex-start;
}

.slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
}

/* Imagen por defecto (paisaje): ocupa todo el ancho y se recorta para llenar */
.slide img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    display: block;
    background: transparent;
}

/* ===== VERSIÓN RETRATO - MÁS GRANDE ===== */
.project-carousel.portrait .project-slides {
    align-items: flex-start;
}

.project-carousel.portrait .slide {
    height: auto;
}

.project-carousel.portrait .slide img {
    width: 100%;
    height: auto;
    max-height: 600px;        /* <-- más grande que los paisajes (550px) */
    object-fit: contain;
    display: block;
    background: transparent;
}

/* Controles - siempre centrados verticalmente */
.project-prev,
.project-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.project-prev:hover,
.project-next:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.08);
    opacity: 1;
}

.project-prev {
    left: 16px;
}
.project-next {
    right: 16px;
}

.project-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    z-index: 10;
    overflow: hidden;
    border-radius: 0;
}
.project-progress .progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-dots .dot {
    width: 24px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.project-dots .dot.active {
    background: var(--accent);
    width: 32px;
    box-shadow: 0 0 8px rgba(139, 107, 74, 0.4);
}

/* ===== CONTACTO ===== */
#contacto {
    background: var(--cream);
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.form-info h2 {
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.form-info p {
    color: var(--gray);
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 1rem;
}

.contact-detail i {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-detail a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.contact-detail a:hover {
    text-decoration: underline;
}

.form-card {
    background: var(--white);
    padding: 40px 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(46, 90, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group .btn {
    width: 100%;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: 1.1rem;
}

.form-group .btn:hover {
    background: var(--primary-dark);
}

.form-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--gray);
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 24px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer .logo-text {
    font-size: 1.2rem;
}

.footer-logo {
    height: 40px;
}

footer .socials {
    display: flex;
    gap: 16px;
}

footer .socials a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    transition: var(--transition);
}

footer .socials a:hover {
    color: var(--white);
}

footer small {
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .about-grid,
    .form-wrapper,
    .feature-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        padding: 24px;
        gap: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
    .nav-links.open {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .about-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    .slide img {
        max-height: 340px;
    }
    .project-carousel.portrait .slide img {
        max-height: 420px; /* más grande en tablet */
    }
    .project-prev,
    .project-next {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
        padding: 6px;
    }
    .project-prev {
        left: 10px;
    }
    .project-next {
        right: 10px;
    }
    .project-dots .dot {
        width: 18px;
    }
    .carousel-content {
        padding: 20px 24px;
    }
    .carousel-content h3 {
        font-size: 1.6rem;
    }
    .carousel-content p {
        font-size: 1rem;
    }
    .carousel-nav {
        gap: 16px;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .feature-text h2 {
        font-size: 2rem;
    }
    .about-media {
        min-height: 220px;
    }
    .rental-item {
        padding: 12px 16px;
    }
    .rental-item ul li {
        font-size: 0.75rem;
        padding: 2px 10px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .form-card {
        padding: 24px 16px;
    }
    .logo-img {
        height: 36px;
    }
    .footer-logo {
        height: 32px;
    }
    .slide img {
        max-height: 240px;
    }
    .project-carousel.portrait .slide img {
        max-height: 300px; /* más grande en móvil */
    }
    .project-prev,
    .project-next {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
        padding: 4px;
    }
    .project-dots .dot {
        width: 14px;
        height: 3px;
    }
    .project-item {
        padding: 0;
    }
    .tire-wheel {
        width: 200px;
        height: 200px;
    }
    .carousel-content {
        padding: 16px 18px;
    }
    .carousel-content h3 {
        font-size: 1.3rem;
    }
    .feature-text h2 {
        font-size: 1.6rem;
    }
    .feature-image img {
        max-height: 250px;
    }
    .about-media {
        min-height: 180px;
    }
    .rental-item h3 {
        font-size: 1.1rem;
    }
    .rental-item ul li {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
}
