/* ═══════════════════════════════════════════
   Grupo Elymar - Static Site Styles
   ═══════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #b08d57;
    --color-primary-dark: #96764a;
    --color-dark: #1a1a1a;
    --color-gray: #666;
    --color-light-gray: #f7f7f7;
    --color-white: #fff;
    --max-width: 1200px;
    --section-padding: 5rem 2rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Hero Video Slider ────────────────────── */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.hero-slide--active {
    opacity: 1;
    z-index: 2;
}

.hero-slide video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3;
    padding: 2rem;
    color: var(--color-white);
}

.hero-text-tagline {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.7;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.hero-title-white {
    color: #fff !important;
}

.hero-title-orange {
    color: #ff6600 !important;
}

.hero-text-title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
    max-width: 800px;
    line-height: 1.15;
}

.hero-text-title.hero-text-title--fade-out {
    opacity: 0;
    transform: translateY(-15px);
}

.hero-text-title.hero-text-title--fade-in {
    opacity: 0;
    transform: translateY(15px);
}

.hero-text-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    opacity: 0.85;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    margin-top: 0.75rem;
    max-width: 600px;
    line-height: 1.5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-contact {
    display: flex;
    gap: 3rem;
    margin-top: 3.5rem;
    align-items: center;
    justify-content: center;
}

.hero-contact-phone,
.hero-contact-email {
    font-family: Arimo, sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.hero-contact-phone {
    color: #fff !important;
}

.hero-contact-email {
    color: #ff6600 !important;
}

.hero-contact-phone:hover,
.hero-contact-email:hover {
    opacity: 0.8;
}

.hero-text-subtitle.hero-text-subtitle--fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.hero-text-subtitle.hero-text-subtitle--fade-in {
    opacity: 0;
    transform: translateY(10px);
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.hero-dot--active,
.hero-dot:hover {
    background: var(--color-white);
    transform: scale(1.2);
}

/* Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-white);
    border: none;
    font-size: 2rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 4px;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.hero-arrow--prev { left: 1rem; }
.hero-arrow--next { right: 1rem; }

/* Fixed Logo */
.hero-logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 20;
}

.hero-logo img {
    height: 100px;
    width: auto;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    font-size: 0.85rem;
    opacity: 0.8;
    animation: scrollBounce 2s infinite;
}

.hero-scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--color-white);
    border-bottom: 2px solid var(--color-white);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Sections ─────────────────────────────── */
.section {
    padding: var(--section-padding);
}

.section--alt {
    background: var(--color-light-gray);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ── About / Quiénes Somos ────────────────── */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.about-logo-top {
    display: block;
    width: 320px;
    height: auto;
    margin: 0 auto 2rem auto;
}

.about-image img:not(.about-logo-top):not(.about-partner-logos) {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.about-partner-logos {
    display: block;
    width: 100%;
    height: auto;
    margin: 2.5rem auto 0 auto;
}

.about-text p {
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.review-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.review-stars {
    color: #f5a623;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.review-text {
    font-size: 0.85rem;
    color: var(--color-gray);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.review-author {
    font-size: 0.75rem;
    color: #999;
    font-style: normal;
}

/* ── Services Grid ──────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: #c9a96e;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-link {
    transform: translateX(4px);
}

.service-card {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-info {
    padding: 1.5rem;
}

.service-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.service-info p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ── Contact ──────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.contact-item a {
    color: var(--color-primary);
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--color-primary-dark);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* ── Footer ───────────────────────────────── */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 3rem 2rem 1.5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #999;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 1.5rem;
    }

    .hero-text-title {
        font-size: 1.8rem;
    }

    .hero-text-subtitle {
        font-size: 0.9rem;
        max-width: 90vw;
    }

    .hero-logo img {
        height: 60px;
    }

    .hero-arrow {
        font-size: 1.4rem;
        padding: 0.5rem 0.7rem;
    }

    .hero-arrow--prev { left: 0.5rem; }
    .hero-arrow--next { right: 0.5rem; }

    .hero-scroll {
        bottom: 4rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

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

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-dots {
        bottom: 2.5rem;
    }

    .about-reviews {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════
   WHATSAPP FLOTANTE
   ═══════════════════════════════════════ */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #25D366;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.whatsapp-label {
    font-family: Arimo, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
    }

    .whatsapp-label {
        display: none;
    }
}

