

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Montserrat', sans-serif; 
    color: #222; 
    line-height: 1.6; 
    background: #fff;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: #0f5e3f; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #1E3A2F; }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); color: #1E3A2F; }
p { margin-bottom: 1rem; color: #333; }
.container { width: 90%; max-width: 1300px; margin: 0 auto; padding: 2rem 0; }
.btn {
    display: inline-block; background: #0f5e3f; color: #fff; padding: 0.9rem 2.2rem;
    border-radius: 40px; font-weight: 700; text-decoration: none; transition: 0.3s;
    border: none; cursor: pointer; font-size: clamp(0.9rem, 2vw, 1.1rem); 
    box-shadow: 0 8px 15px rgba(15,94,63,0.3);
    letter-spacing: 0.5px;
}
.btn:hover { background: #0a4a31; transform: translateY(-3px); box-shadow: 0 12px 20px rgba(15,94,63,0.4); }
.btn-outline { background: transparent; border: 2px solid #0f5e3f; color: #0f5e3f; box-shadow: none; }
.btn-outline:hover { background: #0f5e3f; color: #fff; transform: translateY(-3px); }
.green-text { color: #0f5e3f; }
.section-pad { padding: clamp(2rem, 5vw, 5rem) 0; }
.bg-light { background: #f8fbf9; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(1rem, 2vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

@media (max-width: 992px) { 
    .grid-3 { grid-template-columns: repeat(2,1fr); } 
}
@media (max-width: 768px) { 
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } 
}

/* ===== MARQUEE SIEMPRE VISIBLE ===== */
.top-marquee {
    background: #1E3A2F;
    color: white;
    padding: 8px 0;
    overflow: hidden;
    width: 100%;
    border-bottom: 1px solid #0f5e3f;
}

.top-marquee marquee {
    font-size: 0.95rem;
    font-weight: 500;
}

.top-marquee i {
    color: #0f5e3f;
    margin: 0 8px;
}

.top-marquee a {
    color: white;
    text-decoration: none;
}

.top-marquee a:hover {
    color: #0f5e3f;
}

.top-marquee span {
    margin: 0 10px;
    color: rgba(255,255,255,0.5);
}

/* ===== HEADER ===== */
.jupiterx-header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.elementor-section.elementor-top-section {
    padding: 0;
}
.elementor-container {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    width: 90%;
    flex-wrap: wrap;
}
.elementor-column {
    position: relative;
    min-height: 1px;
    display: flex;
}
.elementor-column.elementor-col-50 {
    width: 50%;
}
.elementor-widget-wrap {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 10px;
}
.raven-column-flex-end {
    justify-content: flex-end;
}
.raven-column-flex-horizontal {
    align-items: center;
}
/* --- AGRANDAR LOGO Y CENTRAR --- */
.raven-site-logo img {
  /* Subimos el tamaño: mínimo 120px en móvil, hasta 160px según pantalla */
  max-height: clamp(120px, 15vw, 160px) !important; 
  width: auto !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Forzar que el contenedor no limite el tamaño del logo */
.raven-site-logo, .elementor-widget-wrap {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

/* --- BOTÓN HAMBURGUESA BLANCO Y CENTRADO --- */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block !important;
    margin: 10px auto !important; /* Centra el botón en la barra verde */
    float: none !important;
  }

  /* Color Blanco para las 3 líneas del menú */
  .hamburger-inner, 
  .hamburger-inner::before, 
  .hamburger-inner::after {
    background-color: #ffffff !important;
    height: 3px !important;
    width: 32px !important;
  }
  
  /* Ajuste de la fila del logo para que no tenga espacios extra */
  .elementor-top-section {
    width: 100% !important;
  }
}
.ha-infobox {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 20px;
}
.ha-infobox:hover {
    transform: scale(1.05);
}
.ha-infobox-figure--icon {
    margin-right: 10px;
}
.ha-infobox-figure--icon i {
    font-size: clamp(20px, 3vw, 28px);
    color: #0f5e3f;
}
.ha-infobox-title {
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    font-weight: 600;
    color: #1E3A2F;
    margin: 0;
    white-space: nowrap;
}
.raven-nav-menu-main {
    display: flex;
    flex-wrap: wrap;
}
.raven-nav-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.raven-nav-menu li {
    margin: 0 15px;
}
.raven-nav-menu li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 1rem);
    transition: 0.3s;
    white-space: nowrap;
}
.raven-nav-menu li a:hover,
.raven-nav-menu li a.raven-menu-item-active {
    color: #0f5e3f;
}
.elementor-widget-button .elementor-button {
    background: #0f5e3f;
    color: #fff;
    padding: clamp(8px, 1.5vw, 12px) clamp(15px, 3vw, 30px);
    border-radius: 40px;
    font-weight: 700;
    box-shadow: 0 8px 15px rgba(15,94,63,0.3);
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    white-space: nowrap;
}
.elementor-widget-button .elementor-button:hover {
    background: #0a4a31;
    transform: translateY(-3px);
}
.elementor-section .elementor-top-section:first-child {
    border-bottom: 1px solid #f0f0f0;
}

/* ===== MENÚ HAMBURGUESA ===== */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1000;
}

.hamburger-box {
    width: 28px;
    height: 22px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    width: 100%;
    height: 3px;
    background-color: #fff;
    position: absolute;
    left: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    width: 100%;
    height: 3px;
    background-color: #fff;
    position: absolute;
    left: 0;
    transition: transform 0.3s;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
    background-color: #0f5e3f;
}

.hamburger.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(0);
    opacity: 0;
}

.hamburger.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    background-color: #0f5e3f;
}

.mobile-menu {
    display: none;
    width: 100%;
    background: #1E3A2F;
    padding: 1rem 0;
    flex-direction: column;
    align-items: center;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 0;
    font-weight: 600;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: #0f5e3f;
    background: rgba(255,255,255,0.05);
}

.mobile-menu.show {
    display: flex;
}

@media (max-width: 768px) {
    .raven-nav-menu-main,
    .elementor-section .elementor-col-50 .elementor-widget-button,
    .ha-infobox {
    display: none;
    }
    
    .mobile-menu-toggle {
    display: block;
    }
    
    .elementor-section .elementor-top-section:first-child .elementor-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    }
    
    .elementor-section .elementor-top-section:first-child .elementor-col-50:first-child {
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    }
    
    .elementor-section .elementor-top-section:first-child .raven-site-logo {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    }
    
    .elementor-section .elementor-top-section:first-child .raven-column-flex-end {
    display: none !important;
    }
    
    .elementor-section .elementor-top-section:last-child .elementor-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0;
    }
    
    .elementor-section .elementor-top-section:last-child .elementor-col-50:first-child {
    width: auto !important;
    }
    
    .elementor-section .elementor-top-section:last-child .elementor-col-50:last-child {
    display: none;
    }
    
    .mobile-menu-toggle {
    margin: 0;
    }
}

/* ===== HERO SLIDER ===== */
.slide-container { 
    position: relative; 
    width: 100%; 
    height: clamp(450px, 85vh, 650px); 
    min-height: 450px; 
    overflow: hidden; 
}
.slider { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    display: flex; 
    transition: transform 0.9s cubic-bezier(0.86,0,0.07,1); 
}
.slide { 
    min-width: 100%; 
    height: 100%; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    background-size: cover; 
    background-position: center; 
}
.slide::before { 
    content: ''; 
    position: absolute; 
    top:0; left:0; width:100%; height:100%; 
    background: rgba(0,0,0,0.55); 
    z-index:1; 
}
.text-content { 
    max-width: min(60%, 600px); 
    color: white; 
    padding: 0 5%; 
    position: relative; 
    z-index: 2; 
}
.text-content h1 { 
    font-size: clamp(1.8rem, 5vw, 3.5rem); 
    color: white; 
    margin-bottom: 0.5rem; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3); 
}
.text-content h1 span { 
    color: #0f5e3f; 
}
.text-content h2 {
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
}
.impact-badge { 
    display: flex; 
    flex-wrap: wrap; 
    gap: clamp(0.5rem, 2vw, 1rem); 
    margin: clamp(1rem, 3vw, 2rem) 0; 
}
.impact-item { 
    background: rgba(15,94,63,0.2); 
    backdrop-filter: blur(5px); 
    padding: clamp(0.3rem, 1.5vw, 0.6rem) clamp(1rem, 3vw, 1.5rem); 
    border-radius: 50px; 
    font-weight: 700; 
    border-left: 5px solid #0f5e3f; 
    font-size: clamp(0.8rem, 2vw, 1rem); 
    color: white; 
}
.image-content { 
    position: relative; 
    z-index: 2; 
    margin-right: 5%; 
}
.image-content img { 
    width: min(300px, 35vw); 
    border-radius: 50%; 
    border: 5px solid #0f5e3f; 
    background: white; 
    box-shadow: 0 20px 30px rgba(0,0,0,0.3); 
}
.dotted-circle { 
    position: absolute; 
    width: min(320px, 40vw); 
    height: min(320px, 40vw); 
    border: 3px dotted rgba(255,255,255,0.5); 
    border-radius: 50%; 
    top:50%; left:50%; 
    transform: translate(-50%,-50%); 
    z-index:0; 
}
.arrow { 
    position: absolute; 
    top:50%; transform:translateY(-50%); 
    font-size: clamp(2rem, 5vw, 3rem); 
    color: white; 
    cursor: pointer; 
    z-index: 10; 
    text-shadow: 0 2px 10px black; 
    opacity: 0.7; 
    transition:0.3s; 
}
.arrow:hover { opacity:1; color:#0f5e3f; }
.arrow-left { left: 10px; }
.arrow-right { right: 10px; }
.slider-controls { 
    position: absolute; 
    bottom: 20px; 
    left:50%; transform:translateX(-50%); 
    display: flex; 
    gap: 15px; 
    z-index: 10; 
}
.slider-controls button { 
    width: 14px; height: 14px; 
    border-radius: 50%; 
    border: none; 
    background: rgba(255,255,255,0.6); 
    cursor: pointer; 
    transition:0.3s; 
    padding: 0;
}
.slider-controls button.active { 
    background: #0f5e3f; 
    transform: scale(1.2); 
}
@media (max-width: 992px) { 
    .image-content { display: none; } 
    .text-content { max-width: 90%; } 
}
@media (max-width: 650px) { 
    .text-content { max-width: 100%; } 
    .arrow { font-size: 2rem; }
}

/* ===== FLIP BOXES ===== */
.raven-flip-box {
    perspective: 2000px; 
    height: 260px; 
    width: 100%; 
    margin-bottom: 1.5rem;
}
.raven-flip-box__layer {
    position: absolute; 
    width: 100%; 
    height: 100%; 
    transition: 0.7s; 
    transform-style: preserve-3d; 
    border-radius: 20px; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.raven-flip-box__front {
    background: #fff; 
    transform: rotateX(0deg); 
    z-index: 2; 
    backface-visibility: hidden; 
    padding: 1.5rem; 
    text-align: center; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.raven-flip-box__back {
    background: #0f5e3f; 
    color: white; 
    transform: rotateX(180deg); 
    backface-visibility: hidden; 
    padding: 1.5rem; 
    text-align: center; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.raven-flip-box:hover .raven-flip-box__front { transform: rotateX(-180deg); }
.raven-flip-box:hover .raven-flip-box__back { transform: rotateX(0deg); }
.raven-flip-box__layer__inner h3 { font-size: 1.5rem; margin-top: 0.8rem; }
.raven-flip-box__layer__inner .raven-flip-box__image img { width: 70px; height: auto; }
.raven-flip-box__back .raven-flip-box__layer__description { font-size: 1rem; line-height: 1.5; }
@media (max-width: 768px) {
    .raven-flip-box { height: 220px; }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: white;
    border-radius: 24px;
    padding: clamp(1.2rem, 3vw, 2rem);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s;
    height: 100%;
    border-bottom: 5px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(15,94,63,0.2);
    border-bottom-color: #0f5e3f;
}
.service-card img {
    width: 100%;
    height: clamp(140px, 20vw, 180px);
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.2rem;
}
.service-icon { font-size: clamp(2.2rem, 5vw, 3rem); color: #0f5e3f; margin-bottom: 1.2rem; }
.checklist { list-style: none; margin: 1rem 0; }
.checklist li { margin-bottom: 0.5rem; }
.checklist i { color: #0f5e3f; margin-right: 0.6rem; width: 1.3rem; }

/* ===== BADGES ===== */
.badge-green { 
    background: #0f5e3f; 
    color: white; 
    padding: 0.3rem 1.2rem; 
    border-radius: 50px; 
    display: inline-block; 
    font-weight: 600; 
    margin-right: 0.6rem; 
    margin-bottom: 0.6rem; 
    box-shadow: 0 5px 10px rgba(15,94,63,0.2);
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}
.phone-large { 
    font-size: clamp(1.3rem, 4vw, 2rem); 
    font-weight: 800; 
    color: #0f5e3f; 
    letter-spacing: 1px; 
}

/* ===== FOOTER ===== */
.footer { background: #1E3A2F; color: #fff; padding: clamp(2rem, 5vw, 4rem) 0 1rem; }
.footer h4 { color: white; font-size: clamp(1.1rem, 3vw, 1.3rem); margin-bottom: 1.2rem; }
.footer p, .footer li { color: white; font-size: 0.95rem; }
.footer a { color: #0f5e3f; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-bottom { text-align: center; margin-top: 2.5rem; padding-top: 1.8rem; border-top: 2px solid #2a5a44; color: white; }
.footer-bottom p { color: white; font-size: 0.9rem; }
iframe { border: 0; width: 100%; height: clamp(250px, 50vw, 350px); }

/* ===== DIVIDER ===== */
.elementor-divider-separator { display: flex; align-items: center; margin: 1.5rem 0; }
.elementor-divider__text { font-size: 1.1rem; font-weight: 600; color: #0f5e3f; padding: 0 1rem; }
.elementor-divider-separator:before, .elementor-divider-separator:after { content: ''; flex: 1; height: 2px; background: #0f5e3f; }

/* ===== GALERÍA ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
}
.gallery-item {
    display: block;
    width: 100%;
    height: 100%;
}
.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(15,94,63,0.2);
}

@media (max-width: 992px) {
    .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    }
    .gallery-item img {
    height: 220px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
    }
    .gallery-item img {
    height: 200px;
    }
}

/* ===== BOTONES FLOTANTES - CORREGIDOS ===== */
.floating-contact-btn {
    position: fixed;
    bottom: 25px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #0f5e3f;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    /* Asegurar que no sobresalgan */
    max-width: calc(100% - 40px);
}
.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(15,94,63,0.4);
}
.floating-contact-btn i { 
    font-size: 26px; 
}
.floating-whatsapp { 
    right: 25px; 
    background-color: #25d366;
    animation: pulse-whatsapp 2s infinite;
}
.floating-whatsapp:hover { 
    background-color: #128C7E; 
}
.floating-call { 
    left: 25px; 
    background-color: #0f5e3f; 
    display: none;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) { 
    .floating-call { 
    display: flex; 
    }
    .floating-contact-btn {
    width: 48px;
    height: 48px;
    bottom: 20px;
    }
    .floating-whatsapp { 
    right: 15px; 
    }
    .floating-call { 
    left: 15px; 
    }
}

@media (max-width: 480px) {
    .floating-contact-btn { 
    width: 44px; 
    height: 44px; 
    bottom: 15px; 
    }
    .floating-whatsapp { 
    right: 10px; 
    }
    .floating-call { 
    left: 10px; 
    }
    .floating-contact-btn i { 
    font-size: 20px; 
    }
}

/* Asegurar que el contenido principal no se superponga con botones flotantes */
main, footer {
    width: 100%;
    overflow-x: hidden;
}


@media (max-width: 768px) {
    /* Asegurar que el contenedor del logo sea flexible y centrado */
    .elementor-section .elementor-container {
        display: flex !important;
        flex-direction: column !important; /* Apila logo y menú */
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* Centrar el logo */
    .raven-site-logo {
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 10px; /* Espacio entre logo y botón */
    }

    /* Estilo del Botón Hamburguesa Blanco y Centrado */
    .mobile-menu-toggle {
        display: block !important;
        margin: 10px auto !important; /* Centra horizontalmente */
        background: transparent;
        border: none;
        padding: 10px;
    }

    /* Color de las rayitas del menú (Blanco) */
    .hamburger-inner, 
    .hamburger-inner::before, 
    .hamburger-inner::after {
        background-color: #ffffff !important; /* Forzamos color blanco */
    }

    /* Quitar anchos fijos de columnas en móvil */
    .elementor-col-50 {
        width: 100% !important;
    }

    /* Ocultar elementos de escritorio que puedan estorbar el centro */
    .desktop-only {
        display: none !important;
    }
}