@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* --- Variables y Reset --- */
:root {
    --primary-blue: #1d2d45;     /* Azul oscuro del footer/header */
    --accent-orange: #f39c12;    /* Naranja para botones/detalles */
    --light-bg: #f8f9fa;         /* Fondo claro */
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --container-width: 100%;
    --max-width: 1260px;
}

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

body {font-family: 'Ubuntu', sans-serif; color: var(--text-color); background-color: var(--white); line-height: 1.6; font-size:16px;}

a {text-decoration: none;  color: inherit; transition: 0.3s;}

ul {list-style: none;}

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

/* --- Top Bar --- */
.top-bar {background-color: #F1F5F9; padding: 6px 0; font-size: 0.85rem;}
.top-bar-content {display: table; width: 100%;}

.social-icons {float: left;}
.social-icons a {margin-right: 15px; color: var(--primary-blue); font-size: 1.5rem;}
.social-icons a .fa-facebook::before {color: #3B5999;}
.social-icons a .fa-twitter::before {color: #2CA9E1;}
.social-icons a .fa-instagram::before {color: #AB0298;}
.social-icons a .fa-youtube::before {color: #F00;}

.top-links {float: right; padding: 3px 0 0;}
.top-links a {margin-left: 20px; color: var(--primary-blue); font-weight: 500;}
.top-links a img {margin: 3px 10px 0;}

/* --- Header --- */
header {background-color: var(--white); padding: 30px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border-bottom: 10px solid #FAA214;}
.header-content {display: flex; justify-content: space-between; align-items: center;}

.search-btn {font-size: 1.2rem; cursor: pointer; border: 2px solid #686859; padding: 0px 5px; border-radius: 50%; width: 35px; height: 35px; float:right; margin-left: 20px;}
.search-btn i {color: #686859;}

/* --- Hero Section --- */
.hero {background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('/goreayp/imag/volcan01.jpg'); background-size: cover; background-position: center; height: 550px; display: flex; align-items: center; position: relative; margin-bottom: 80px; padding: 0 50px;}
.hero-text {color: var(--white); width: auto; position: absolute; z-index: 10;}
.badge {border-radius: 20px; background-color: var(--accent-orange); color: var(--white); padding: 5px 10px; font-size: 1rem; font-weight: 400; text-transform: uppercase;}
.hero h1 {font-size: 3.5rem; line-height: 1.2; margin: 20px 0; font-weight: 700; text-shadow: 2px 2px 1px #000;}
.btn-primary {display: inline-block; background-color: var(--white); color: var(--primary-blue); padding: 10px 25px; border-radius: 25px; font-weight: bold; font-size: 0.9rem;}
.btn-primary:hover {background-color: var(--accent-orange); color: var(--white);}
.velo-header {position: absolute; background: linear-gradient(90deg,rgba(13, 45, 81, 0.2) 10%, rgba(255, 135, 0, 0.5) 100%); width: 100%; height: 550px; top: 0; left: 0;}

/* --- Quick Links (Floating Cards) --- */
.quick-links {position: relative; margin: -130px auto 30px; z-index: 10; max-width: var(--max-width);}

.cards-wrapper {display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;}
.card-icon {background-color: var(--white); padding: 50px 20px; text-align: center; border-radius: 8px; box-shadow: 3px 3px 7px rgba(0,0,0,0.3); transition: transform 0.3s;}
.card-icon:nth-child(2n+1) {border-top: 5px solid #FF8700;}
.card-icon:nth-child(2n+2) {border-top: 5px solid #1C63B0;}
.card-icon:hover {transform: translateY(-5px);}
.card-icon i {font-size: 2.5rem; color: var(--accent-orange); margin-bottom: 15px;}
.card-icon h3 {font-size: 1.2rem; color: var(--primary-blue); margin-bottom: 0;}
.card-icon p {font-size: 1.2rem; color: var(--text-light); margin-top: -3px;}

/* --- General Section Styles --- */
.section {
    padding: 60px 0;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-orange);
    padding-left: 15px;
}

.section-header h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
}

.view-more {color: #2980b9; font-weight: 400; font-size: 1rem;}

.subtitle {
    margin-top: -15px;
    margin-bottom: 40px;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- News Grid --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.news-card {background: var(--white); border-radius: 8px; overflow: hidden;  box-shadow: 3px 3px 7px rgba(0,0,0,0.3);}
.news-card img {width: 100%; height: 180px; object-fit: cover;}
.news-content {padding: 20px;}
.date {font-size: 0.8rem; color: var(--text-light); display: block; margin-bottom: 10px;}
.news-card h3 {font-size: 1.1rem; color: var(--primary-blue); margin-bottom: 10px; line-height: 1.4;}
.news-card p {font-size: 0.9rem; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;}

/* --- Banners Grid --- */
.grid-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en desktop */
    gap: 20px;
}

.grid-banners img {
    width: 100%;
    border-radius: 8px;
    transition: opacity 0.3s;
}

.grid-banners img:hover {
    opacity: 0.9;
}

/* --- Tourism Cards --- */
.tour-card {height: 400px; background-size: cover; background-position: center; border-radius: 8px; position: relative; overflow: hidden; cursor: pointer;}
.tour-card::before {content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.1), rgba(0,0,0,0.8));}

.tour-info {position: absolute; top: 5%; left: 20px; right: 20px; color: var(--white); text-align: center; height: 90%;}
.tour-info h3 {font-size: 1.2rem; margin-bottom: 10px; text-align: left; line-height: 1.8rem;}
.tour-info i {font-size: 2.4rem; opacity: 0.7; margin: 0 auto; bottom: 0; position: absolute; left: 44%;}
.tour-info i:hover {transition: all ease-in-out 0.2s; opacity: 1;}

/* --- 3. BOTTOM BANNERS SLIDER --- */
.bottom-banners { padding: 40px 0; margin:0 auto;}

.slider-wrapper-bottom {
    display: flex;
    align-items: center;
    position: relative;
}

.bottom-track-container {
    overflow: hidden;
    width: 100%;
}

.bottom-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.bottom-slide-item {
    min-width: calc(25% - 15px); /* 4 columnas */
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.bottom-slide-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.nav-arrow {background: none; border: none; font-size: 1.5rem; color: var(--primary-blue); cursor: pointer; padding: 0 10px;}
.nav-arrow.prev-bottom {position: relative; left: -20px;}
.nav-arrow.next-bottom {position: relative; right: -20px;}

/* SECCIONES */

main {max-width: var(--max-width) !important; padding-top: 20px !important; padding-bottom: 60px !important;}

.main-nav ul {display: flex; gap: 25px;}
.main-nav a {font-size: 0.95rem; font-weight: 300; color: var(--text-color);}
.main-nav a:hover {color: var(--accent-orange);}

.breadcrumbs {font-size: 0.9rem; color: #666; margin-bottom: 40px;}
.breadcrumbs a { color: #0056b3; }
.breadcrumbs span { color: #999; }

.page-grid {display: grid; grid-template-columns: 3fr 1fr; gap: 40px; margin-top: 20px;}

.category-line {display: flex; align-items: center; gap: 15px; margin-bottom: 15px; border-left: 3px solid var(--accent-orange); padding-left: 10px;}
.category-tag {font-weight: 400; color: var(--accent-orange); text-transform: uppercase; font-size: 1.3rem;}

.lead-text {font-size: 1.2rem; font-weight: 400; color: #465367; line-height: 1.5;}

.news-article {margin-bottom: 70px;}
.news-article .category-line {display: block; height: 35px; margin-bottom: 25px;}
.news-article .category-tag {float: left;}
.news-article .news-date {float: right; color: #475569; font-size: 0.85rem;}
.news-body p {margin-bottom: 20px; font-size: 1.2rem; color: #333; line-height: 1.7;text-align: justify;}

.main-news-image img {width: 100%; margin: 25px 0 10px;}
.news-toolbar {display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 30px;}
.access-tools button, .share-tools a {background: none; border: 1px solid #ddd; width: 40px; height: 40px; margin-right: 5px; cursor: pointer; color: #555; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: all 0.2s;}
.access-tools button:hover, .share-tools a:hover {color:  var(--primary-blue); border: 2px var(--primary-blue) solid;}

.category-badge-red {background-color: #1C63B0; color: white; padding: 10px 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; display: inline-block; margin-bottom: 15px; border-radius: 7px;}
.page-title, .news-header h1 {font-size: 2.2rem; line-height: 1.2; color: var(--primary-blue); margin-bottom: 20px;}
.tools-bar {display: flex; justify-content: space-between; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 8px 0; margin-bottom: 30px;}
.access-tools-mini button, .share-tools-mini a, .btn-like {background: none; border: 1px solid #ccc; color: #0056b3; width: 30px; height: 30px; line-height: 28px; text-align: center; display: inline-block; margin-right: 5px; cursor: pointer; font-size: 0.8rem; border-radius: 3px; transition: all 0.2s;}

.bio-text {line-height: 1.8; color: #444; font-size: 1rem; text-align: justify;}
.bio-text h3 {font-size: 1.1rem; text-transform: uppercase; color: #333; margin-bottom: 15px; font-weight: 700;}
.bio-text p {margin-bottom: 20px;}
.bio-image {text-align: center; margin-bottom: 30px;}
.bio-image img, .bio-text img {max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.1);}

.bottom-tools {Display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee;}
.btn-back {background-color: #0069d9; color: white; padding: 8px 25px; border-radius: 4px; font-size: 0.9rem; font-weight: 500;}
.right-tools {display: flex; align-items: center; gap: 10px;}

/* --- Columna Derecha (Sidebar) --- */
.sidebar-widget {background-color: #f9f7e8; overflow: hidden; padding: 5px 20px;}
.sidebar-header {padding: 15px;}
.sidebar-header h3 {color: #1C63B0; font-size: 1.4rem; margin: 0; text-transform: uppercase; text-align: left; line-height: 1.4rem;}
.sidebar-content {padding: 20px;}
.sidebar-date {font-size: 0.8rem; color: #666; margin-bottom: 15px; border-bottom: 1px dashed #ccc; padding-bottom: 10px;}
.sidebar-menu {list-style: none;}
.sidebar-menu li {margin-bottom: 10px;}
.sidebar-menu a {display: block; background-color: white; border: 1px solid #ddd; padding: 10px; color: #0056b3; font-size: 0.9rem; text-align: center; font-weight: 500;}
.sidebar-menu a:hover {background-color: #0056b3; color: white; border-color: #0056b3;}
.sidebar-menu a.active {font-weight: 700; border-left: 4px solid #a91e46; /* Indicador activo */}

/* --- Footer --- */
footer {background-color: var(--primary-blue); color: #cbd5e1; padding-top: 60px; font-size: 0.9rem; margin-top: 70px; border-top: 7px solid #FF8700; background-image: url('/goreayp/imag/backfooter.png'); background-repeat: no-repeat; background-position: bottom; background-size: contain;}
footer .container {padding: 0;}

.footer-grid {max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 150px;}

.footer-col h4 {color: var(--white); margin-bottom: 20px; font-size: 1.4rem; font-weight: 500;}
.footer-col li {margin-bottom: 10px;}
.footer-col li a {font-size: 1.2rem; font-weight: normal;}
.footer-col a:hover {color: var(--accent-orange); text-decoration: none;}

.sub-footer {max-width: var(--max-width); padding: 30px 0; display: flex; justify-content: space-between; align-items: center; margin:0 auto;}

.contact-info {display: flex; gap: 50px; font-size: 0.9rem;}
.contact-info span {margin-top: 59px;}
.contact-info span i {font-size: 1.1rem; margin-right: 3px;}

.legal-links {text-align: center; padding: 20px 0; background-color: #222; font-size: 0.8rem;}
.legal-links a {color: #818998; padding: 5px 15px;}
.legal-links a:hover {color: #FF8700;}

/* --- Responsive Media Queries --- */

/* Tablet (hasta 1024px) */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    }
    
    .cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-banners {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (hasta 768px) */
@media (max-width: 768px) {
    /* Header Stack */
    .top-bar-content, .header-content, .footer-grid, .sub-footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
        display: none; /* En producción usarías JS para el menú hamburguesa */
    }
    
    /* Mostrar menú básico apilado para demo */
    .main-nav:hover ul { display: flex; } 

    .hero {
        height: 400px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .cards-wrapper {
        grid-template-columns: 1fr; /* 1 columna */
    }

    .quick-links {
        margin-top: -30px;
    }

    .grid-4, .grid-banners, .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .contact-info {
        flex-direction: column;
        gap: 5px;
    }
	
	footer {background-position: center bottom 80px;}
}