/* ---------- RESET GLOBAL ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

/* ---------- BACKGROUND LIGHT / DARK ---------- */
body {
    background: linear-gradient(to bottom, #FFE5C8, #FFFFFF);
    color: #1A1A1A;
    overflow-x: hidden;
    transition: background 0.35s ease, color 0.35s ease;
}

body.dark {
    background: linear-gradient(to bottom, #6A2C00, #1A0900);
    color: #f2f2f2;
}

/* ---------- CONTAINER ---------- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ---------- NAV ---------- */
.navbar {
    width: 100%;
    padding: 18px 0;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    z-index: 100;
    transition: background .3s ease;
}

body.dark .navbar {
    background: rgba(50,25,10,0.6);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo span {
    color: #FFA64D;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dark-btn {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.dark-btn:hover {
    transform: scale(1.1);
}

/* ---------- BUTTONS ---------- */
.btn-nav,
.btn-primary {
    padding: 12px 24px;
    background: #FFA64D;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.25s ease;
}

.btn-nav:hover,
.btn-primary:hover {
    transform: translateY(-3px);
    background: #FFB66D;
}

body.dark .btn-primary,
body.dark .btn-nav {
    background: #FF8C3A;
}

body.dark .btn-primary:hover,
body.dark .btn-nav:hover {
    background: #FFA858;
}

/* ---------- HERO ---------- */
.hero {
    padding: 120px 0 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero-content h1 span {
    color: #FFA64D;
}

/* ---------- SECTIONS ---------- */
section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 50px;
}

/* ---------- CARDS GENERALES (SERVICIOS + PRECIOS) ---------- */
.cards {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    padding: 32px;
    background: rgba(255,255,255,0.65);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    transition: 0.25s ease;
}

body.dark .card {
    background: rgba(110,60,20,0.55);
    border: 1px solid rgba(255,255,255,0.12);
}

.card h3 {
    font-size: 1.45rem;
    color: #FFA64D;
    margin-bottom: 15px;
}

/* Hover tarjetas servicios+precios */
.hover-card:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.18);
}

/* Precio */
.price {
    font-size: 2.1rem;
    margin-bottom: 15px;
    color: #FFA64D;
}

/* ---------- CARRUSEL ¿POR QUÉ ELEGIRNOS? ---------- */

.ventajas {
    padding: 90px 0;
}

/* Un poco más estrecho para lograr “una y dos mitades” */
.ventajas-container {
    max-width: 900px;
}

.carousel-shell {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;

    /* Difuminado lateral usando máscara */
    -webkit-mask-image: linear-gradient(to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%);
    mask-image: linear-gradient(to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 40px;
    animation: scrollCarousel 35s linear infinite;
}

/* Pausa al hacer hover */
.carousel-shell:hover .carousel-track {
    animation-play-state: paused;
}

/* Tarjetas del carrusel: más grandes */
.benefit-card {
    min-width: 360px;
    max-width: 360px;
    padding: 26px;
    border-radius: 18px;

    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);

    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
    transition: 0.3s ease;
}

body.dark .benefit-card {
    background: rgba(110,60,20,0.7);
    border-color: rgba(255,255,255,0.12);
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #FFA64D;
}

.benefit-card p {
    opacity: 0.9;
    line-height: 1.45rem;
}

/* Hover de la tarjeta central (o la que pilles) */
.benefit-card:hover {
    transform: scale(1.06);
    box-shadow: 0 24px 45px rgba(0,0,0,0.22);
}

/* Animación infinita */
@keyframes scrollCarousel {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- PORTFOLIO ---------- */
.portfolio-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portfolio-item {
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.3);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* LA CLAVE */
    display: block;
}

/* ---------- CONTACTO ---------- */
.contacto {
    text-align: center;
}

.contact-content p {
    margin-bottom: 25px;
    opacity: 0.85;
}

/* ---------- FOOTER ---------- */
footer {
    text-align: center;
    padding: 25px 0;
    opacity: 0.75;
    font-size: 0.9rem;
}

/* ---------- ANIMACIONES ---------- */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(35px);
    animation: slideUp 1s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}
