:root {
    --color-primary: #b55c3a;     /* Terracota - PRINCIPAL */
    --color-secondary: #c78e3e;    /* Mostaza - secundario */
    --color-accent: #7c774a;       /* Verde oliva - acento */
    --color-neutral: #F8F8F8;      /* Fondo claro */
    --color-text: #333333;          /* Texto principal */
    --color-btn: #b55c3a;           /* Terracota para botones */
    --color-icon: #c78e3e;          /* Mostaza para iconos */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

a{
    text-decoration: none;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-neutral);
    color-scheme: only light;
    background-position: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', serif;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}


.logo img {
  height: 85px;
  width: auto;
  display: block;
  margin-top: 2%;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.4));
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 30px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HEADER*/
header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #9e4f32 100%);
    box-shadow: 0 4px 20px rgba(181, 92, 58, 0.3);
    position: relative;
    z-index: 1000;
    width: 100%;
}

#header-container {
    position: relative;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
/* ===== LÍNEA AMARILLA DEBAJO DEL HEADER ===== */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, #e5a047 100%);
    box-shadow: 0 2px 10px rgba(199, 142, 62, 0.5);
    z-index: 1001;
}


.logo {
    font-size: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    padding-top: 15px;
}

.nav-links li {
    margin-left: 1.5rem;
}

.fondo{
    padding: 8px 10px;
    border-radius: 15px;
    color: var(--color-neutral);
    font-weight: 800;
}

.fondo:hover{
    background: linear-gradient(135deg, var(--color-secondary) 0%, #b57c2e 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(199, 142, 62, 0.3);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('Imagenes/Index/hero-top.png');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-content p {
padding-top: 5px;
padding-bottom: 10px;
}

.btn-readmore{
    margin-left: 15%;
}

/* ===== BOTONES - INTEGRAMOS VERDE OLIVA ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #9e4f32 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(181, 92, 58, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(181, 92, 58, 0.5);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    border-color: rgba(255,255,255,0.3);
}

.btn:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    box-shadow: none;
}

.btn-secondary:hover {
    background: white;
    color: var(--color-primary);
    border-color: transparent;
}

.btn-acc {
    margin-left: 10px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #5a5536 100%);
    box-shadow: 0 4px 15px rgba(124, 119, 74, 0.3);
}

.btn-acc:hover {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
}

/* Introduccion */
.intro-section {
    background-color: var(--color-neutral);
    position: relative;
    overflow: hidden;
}


.intro-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, var(--color-accent) 0%, transparent 70%);
    opacity: 0.1; 
    z-index: 0;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.intro-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--color-secondary);
}

.intro-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.intro-features {
    list-style: none;
    margin: 2rem 0;
}

.intro-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.intro-features i {
    color: var(--color-accent);
    margin-right: 10px;
    margin-top: 5px;
    font-size: 1.2rem;
}

.intro-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s;
    border: 3px solid var(--color-accent); /* Borde sólido verde oliva */
}

.intro-image:hover {
    transform: scale(1.03);
    border-color: var(--color-primary); /* Cambia a terracota al hover */
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Secciones generales */
.section {
    padding: 1rem 0;
}

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

.section-title h2 {
    color: var(--color-secondary);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

/* Categorías principales */
.categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(124, 119, 74, 0.25);
}

.category-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.category-content {
    padding: 1.5rem;
}

.category-content h3 {
    color: var(--color-primary);
}

.category-content p {
    padding-bottom: 10px;
}

.process {
    background: linear-gradient(135deg, var(--color-accent) 0%, #5a5536 100%); /* CAMBIADO A VERDE OLIVA */
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.process .section-title h2 {
    color: white;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    width: 100%;
}

/* ===== UNIFICAR TAMAÑO DE TARJETAS DE PROCESO ===== */
.process .step {
    max-width: 280px;
    height: 280px; /* Altura fija */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 0.5rem;
}

.process .step h3 {
    margin: 0.5rem 0;
    min-height: 3rem; /* Altura mínima para títulos */
}

.process .step p {
    min-height: 4rem; /* Altura mínima para textos */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .process .step,
    .info-item {
        height: 260px; /* Un poco más pequeño en móviles */
    }
}

@media (max-width: 576px) {
    .process .step,
    .info-item {
        height: auto; /* Que se ajuste al contenido */
        min-height: 250px;
    }
}

/* Ajuste para tablets */
@media (max-width: 992px) {
    .process-steps {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .step {
        max-width: 220px;
    }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .process-steps {
        flex-wrap: wrap;
    }
    
    .step {
        max-width: 100%;
        width: calc(50% - 1rem);
    }
}

@media (max-width: 576px) {
    .step {
        width: 100%;
    }
}

.step {
    text-align: center;
    max-width: 280px;
    width: 100%;
    margin: 0.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2rem 0.5rem;
}

.step h3,
.step p  {
    padding: 0 15px;
    color: white;
}

.step p {
    font-size: 0.9rem;
}

.step-icon {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

/* ===== CAMBIO: Hover con mostaza ===== */
.step:hover {
    transform: translateY(-10px) scale(1.02);
    background: linear-gradient(135deg, var(--color-secondary) 0%, #b57c2e 100%);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ===== BOTÓN DE SCROLL - CON VERDE OLIVA ===== */
.btn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    box-shadow: 0 4px 20px rgba(124, 119, 74, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    border: none;
    outline: none;
}

.btn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(124, 119, 74, 0.5);
}

.btn-scroll-top svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.3s ease;
}

.btn-scroll-top:hover svg {
    transform: translateY(-3px);
}


/* ===== FOOTER - CON LÍNEA DE COLORES ===== */
footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    padding: 4rem 0 1rem;
    position: relative;
    overflow: hidden;
}

/* Línea decorativa con los tres colores */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    margin-top: 1.5rem;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    transform: translateY(-5px) rotate(5deg);
    border-color: transparent;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .fondo{
        padding: 0px 3px;
    }
}

@media (max-width: 992px) {
    .contact-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .map-section {
        padding-top: 0;
    }
    
    .map-visual,
    .map-visual iframe {
        min-height: 350px;
    }
    
    .process-steps {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .step {
        max-width: 220px;
    }
}

@media (max-width: 968px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .intro-image {
        order: -1;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--color-primary) 0%, #9e4f32 100%);
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        padding: 1rem 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links a {
        display: block;
    }
    
    .fondo {
        background: transparent;
        color: white;
        border-radius: 0;
        padding: 15px;
        display: block;
        width: 100%;
    }
    
    .fondo:hover {
        background: linear-gradient(135deg, var(--color-secondary) 0%, #b57c2e 100%);
        transform: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .categories {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step {
        max-width: 100%;
        width: calc(50% - 1rem);
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
        display: block;
    }
    
    .contact-info-section {
        padding: 25px;
    }

    .contact-info-section h3 {
        font-size: 1.6rem;
    }

    .map-visual,
    .map-visual iframe {
         min-height: 300px;
    }
}

@media (max-width: 576px) {
    .logo img {
        height: 50px;
        width: auto;
        display: block;
        margin-top: 2%;
    }
    .hero {
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .contact-info-section {
        padding: 20px;
    }
    
    .contact-info-section h3 {
        font-size: 1.4rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .contact-text p{
        font-size: 1rem;
        padding-right: 10px;
    }
    
    .contact-text h4 {
        font-size: 1.1rem;
    }
    
    .map-visual,
    .map-visual iframe {
        min-height: 250px;
    }
    
    .step {
        width: 100%;
    }

    @media (max-width: 403px){
        .btn-acc{
            margin-top: 10px;
        }
    }

    @media (max-width: 330px ){
        .contact-text p{
        font-size: 1rem;
        padding-right: 25px;
    }

        .logo img {
        height: 50px;
        width: auto;
        display: block;
        margin-top: 2%;
    }
    }
}
