/* ===== VARIABLES GLOBALES ===== */
:root {
    --primary: #251e1d;
    --accent: #d4a574;
    --text: #333;
    --light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --family-serif: 'Alice', serif;
}

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

body {
    font-family: Alice, serif;
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* ===== NAVEGACIÓN ===== */
.nav-bar {
    background: var(--primary);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar {
    padding: 0.9rem 2rem;
}

.navbar-brand img {
    max-height: 120px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    padding: 0.8rem 1.2rem !important;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    font-family: var(--family-serif);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent) !important;
}

.navbar-toggler {
    border-color: var(--accent);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d4a574' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== CAROUSEL/HERO - CORREGIDO ===== */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-inner {
    width: 100%;
}

.carousel-item {
    position: relative;
    height: 550px;
    width: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
    display: block;
}

.overlay-bottom::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(37, 30, 29, 0.8));
    z-index: 1;
    pointer-events: none;
}

.carousel-caption {
    position: absolute !important;
    z-index: 10 !important;
    bottom: 15% !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    text-align: center;
    padding: 2rem;
    pointer-events: none;
}

.carousel-caption * {
    position: relative;
    z-index: 11;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 3px 3px 25px rgba(0,0,0,0.9);
    margin: 0.5rem 0 !important;
    line-height: 1.2 !important;
    animation: fadeInUp 1s ease-out;
    font-family: var(--family-serif);
    display: block !important;
    clear: both;
}

.carousel-caption h2 {
    font-size: 2rem;
    font-weight: 400;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.9);
    margin: 0.5rem 0 !important;
    line-height: 1.3 !important;
    animation: fadeInUp 1s ease-out 0.2s both;
    display: block !important;
    clear: both;
}

.carousel-caption .text-primary {
    color: var(--accent) !important;
}

.carousel-caption .text-white {
    color: var(--white) !important;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 15;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECCIONES ===== */
section,
.container-fluid {
    position: relative;
}

.py-5 {
    padding: 5rem 0 !important;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h4 {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.section-title h1 {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
    display: inline-block;
}

.section-title h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.display-4 {
    font-size: 2.5rem !important;
    font-weight: 600 !important;
}

/* ===== ABOUT SECTION ===== */
.zoom {
    transition: transform 0.5s ease;
}

.zoom:hover {
    transform: scale(1.05);
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.fa-check {
    color: var(--accent);
}

/* ===== SERVICIOS - TAGS ===== */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tag {
    background: var(--white);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.tag:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.tag.active {
    background: var(--primary);
    color: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}

/* ===== OFFER/CTA SECTION ===== */
.offer {
    background: linear-gradient(135deg, rgba(37, 30, 29, 0.95) 0%, rgba(74, 53, 48, 0.9) 100%),
                url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1600&q=80') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.offer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 165, 116, 0.2) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.offer .container {
    position: relative;
    z-index: 2;
}

.offer h1,
.offer h4 {
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
}

.offer .text-primary {
    color: var(--accent) !important;
}

.offer .text-white {
    color: var(--white) !important;
}

/* ===== PROCESS SECTION ===== */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7e5b3c 0%, #442306 100%);
    box-shadow: 0 4px 15px rgba(126, 91, 60, 0.3);
    transition: var(--transition);
    margin: 0 auto;
}

.icon-circle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(126, 91, 60, 0.5);
}

.icon-circle svg {
    width: 40px;
    height: 40px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.row.align-items-center {
    margin-bottom: 2.5rem !important;
}

.row.align-items-center h4 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.row.align-items-center p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-carousel .testimonial-item {
    background: linear-gradient(135deg, #6f4e37, #3e2723); /* degradado café */
    padding: 2.5rem;
    border-radius: 20px;
    min-height: 320px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    color: #ffffff; /* texto blanco general */
}

.testimonial-carousel .testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Imagen más ancha */
.testimonial-carousel .testimonial-item img {
    width: 100%;          /* ocupa todo el ancho */
    max-width: 320px;     /* límite para que no se deforme */
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Título */
.testimonial-carousel .testimonial-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

/* Texto pequeño / subtítulo */
.testimonial-carousel .testimonial-item i {
    font-size: 0.9rem;
    color: #f5e6d3; /* café claro */
     --family-serif: 'Alice', serif;
}

/* Párrafo */
.testimonial-carousel .testimonial-item p {
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 1.2rem;
    color: #ffffff;
}


/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, #4a3530 100%);
    position: relative;
}

.footer h2,
.footer h4 {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer p i {
    color: var(--accent);
    margin-right: 0.5rem;
}

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

.footer a:hover {
    color: var(--accent);
    text-decoration: none;
}

.footer .btn-outline-light {
    border-color: var(--accent);
    color: var(--accent);
    transition: var(--transition);
}

.footer .btn-outline-light:hover {
    background: var(--accent);
    color: var(--primary);
}

.footer .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.footer .btn-primary:hover {
    background: #c99563;
    border-color: #c99563;
    transform: translateX(5px);
}

.footer .input-group input {
    border-radius: 25px 0 0 25px;
    border: none;
}

.footer .input-group-append .btn {
    border-radius: 0 25px 25px 0;
}

/* ===== BOTONES ===== */
.btn {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    background: #c99563;
    border-color: #c99563;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
}

.btn-lg-square {
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    display: none;
    z-index: 998;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    display: inline-flex;
    animation: fadeInUp 0.5s ease;
}

/* ===== UTILITIES ===== */
.text-primary {
    color: var(--accent) !important;
}

.bg-none {
    background: transparent !important;
}

.font-weight-medium {
    font-weight: 500 !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .navbar-nav {
        background: rgba(37, 30, 29, 0.95);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .carousel-item {
        height: 450px;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        bottom: 10% !important;
        width: 95%;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.2rem;
    }
    
    .section-title h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .py-5 {
        padding: 3rem 0 !important;
    }
    
    .icon-circle {
        width: 70px;
        height: 70px;
    }
    
    .tags-container {
        gap: 0.5rem;
    }
    
    .tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .testimonial-carousel .testimonial-item img {
        width: 150px;
        height: 160px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        bottom: 5% !important;
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption h2 {
        font-size: 1rem;
    }
    
    .testimonial-carousel .testimonial-item {
        padding: 1.5rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}




/* ===== ANIMACIONES ADICIONALES ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c99563;
}

/* ===== TEAM SECTION ===== */
.team-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f6f1ec, #ede4d9);
  font-family: 'Alice', sans-serif;
}

.section-header {
  margin-bottom: 60px;
}

.section-subtitle {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8b5e3c;
  margin-bottom: 10px;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  color: #4b2e1e;
  margin-bottom: 15px;
}

.section-title .text-accent {
  color: #a47148;
}

.section-description {
  font-size: 16px;
  color: #6f4e37;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== TEAM GRID ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* ===== TEAM MEMBER CARD ===== */
.team-member {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(75, 46, 30, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(75, 46, 30, 0.25);
}

/* ===== MEMBER IMAGE ===== */
.member-image {
  width: 100%;
  height: 310px;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-member:hover .member-image img {
  transform: scale(1.08);
}

/* ===== MEMBER INFO ===== */
.member-info {
  padding: 25px;
  text-align: center;
    font-family: 'Alice', serif;
  background: linear-gradient(180deg, #fff, #f6f1ec);
}

.member-info h4 {
  font-size: 20px;
  font-weight: 600;
  color: #4b2e1e;
  margin-bottom: 8px;
}

.member-info span {
  font-size: 14px;
  font-weight: 500;
  color: #8b5e3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



section {
    max-width: 1200px;
    margin: 0 auto;
      font-family: 'Alice', serif;
    padding: 60px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.post {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    font-family: 'Alice', serif;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.post img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 16px;
}

.post h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
}

.post h3:nth-of-type(2) {
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    margin-top: 12px;
    margin-bottom: 4px;
}

.categoria {
    display: inline-block;
    font-size: 0.75rem;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
      font-family: 'Alice', serif;
}

.post p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 12px;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    section {
        padding: 40px 16px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}








/* =======================================================
   SECCIÓN GENERAL
   Controla el espaciado global y tipografía base
======================================================= */
.marketing-section {
  padding: 6rem 2rem;              /* separación total de la sección */
  font-family: 'Alice', serif;
  background: #f8f6f4;
}



/* =======================================================
   BLOQUE: ERRORES (GRID)
   Espacio entre tarjetas y separación inferior
======================================================= */
.errors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;                       /* separación entre cards */
  margin-bottom: 6rem;             /* espacio hacia la siguiente sección */
}



/* =======================================================
   TARJETA DE ERROR
======================================================= */
.error-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem;                   /* padding interno */
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.error-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,.12);
}



/* =======================================================
   CONTENIDO INTERNO DE TARJETAS
======================================================= */
.error-card .icon {
  font-size: 1.8rem;
}

.error-card h3 {
  margin: 1rem 0 1.2rem;
  font-size: 1.1rem;
}

.error-card p {
  margin-bottom: .8rem;
  font-size: .9rem;
  line-height: 1.5;
}



/* =======================================================
   BLOQUE: COMPARATIVA DE MARKETING
   Separación superior e inferior clara
======================================================= */
.comparison {
  display: grid;
  font-family: 'Alice', serif;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 5rem;
}



/* =======================================================
   TARJETAS OSCURAS (COMPARATIVA)
======================================================= */
.card.dark {
  background: linear-gradient(160deg, #3b2f2a, #2a1f1b);
  color: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 22px;
  position: relative;
}



/* =======================================================
   LISTADO DE PROS / CONTRAS
======================================================= */
.card ul {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.card li {
  margin: .9rem 0;
  font-size: .95rem;
}



/* =======================================================
   ICONOS DE ESTADO
======================================================= */
.ok::before {
  content: "✔ ";
  color: #4ade80;
  font-weight: bold;
}

.bad::before {
  content: "✖ ";
  color: #f87171;
  font-weight: bold;
}



/* =======================================================
   TARJETA DESTACADA (RECOMENDADO)
======================================================= */
.featured {
  border: 2px solid #d6a46a;
}



/* =======================================================
   BADGE SUPERIOR
======================================================= */
.badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: #d6a46a;
  color: #000;
  padding: .35rem 1rem;
  border-radius: 999px;
  font-size: .7rem;
  letter-spacing: .05em;
}



/* =======================================================
   BLOQUE FINAL: CONSEJO
   Espacio independiente y visualmente separado
======================================================= */
.tip {
  background: #2a1f1b;
  color: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 18px;
  font-size: .95rem;
  max-width: 900px;
  margin: 0 auto;                  /* centra el bloque */
  line-height: 1.6;
}
