/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-color: #231F20;
    --secondary-color: #3a3637;
    --accent-color: #d4af37;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(35, 31, 32, 0.1);
    --shadow-md: 0 4px 16px rgba(35, 31, 32, 0.15);
    --shadow-lg: 0 8px 24px rgba(35, 31, 32, 0.2);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==================== UTILITY CLASSES ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.section__divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section__description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scroll-header {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: -5px;
}

.nav__list {
    display: flex;
    gap: 40px;
}

.nav__link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__toggle,
.nav__close {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('IMAGENES/ANGAR 5_FONDO.png') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(35, 31, 32, 0.9) 0%, rgba(58, 54, 55, 0.85) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    font-weight: 500;
}

.hero__description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero__scroll a {
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==================== ANIMATIONS ==================== */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background: var(--white);
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about__text {
    padding-right: 20px;
}

.about__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color);
    line-height: 1.8;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition);
}

.feature:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
}

.feature i {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 2px;
}

.feature span {
    flex: 1;
    color: var(--text-color);
}

.about__image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about__image:hover img {
    transform: scale(1.05);
}

/* ==================== MISSION, VISION, VALUES ==================== */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.mvv-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.mvv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.mvv-card__icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.mvv-card__title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.mvv-card__text {
    color: var(--text-color);
    line-height: 1.8;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
}

.value-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.value-item span {
    font-weight: 600;
    color: var(--primary-color);
}

/* ==================== SERVICES SECTION ==================== */
.services {
    background: var(--light-bg);
}

.service-categories {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.category-card:hover {
    box-shadow: var(--shadow-md);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.category-header:hover {
    background: var(--light-bg);
}

.category-header.active {
    background: var(--light-bg);
    border-left-color: var(--accent-color);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    flex-shrink: 0;
    overflow: hidden;
    padding: 8px;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.category-info {
    flex: 1;
}

.category-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.category-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.category-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-header.active .category-toggle {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.category-content.active {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.service-items {
    padding: 20px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--light-bg);
}

.service-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.service-item:hover {
    border-left-color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.service-item i {
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 5px;
}

.service-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.service-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* ==================== COVERAGE 360 SECTION ==================== */
.organization {
    background: var(--white);
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.coverage-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.coverage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.coverage-card--center {
    grid-column: 2 / 4;
    grid-row: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 50px 40px;
}

.coverage-card:nth-child(1),
.coverage-card:nth-child(2) {
    grid-row: 1;
}

.coverage-card:nth-child(4),
.coverage-card:nth-child(5) {
    grid-row: 2;
    grid-column: span 2;
}

.coverage-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.coverage-icon-main {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 3rem;
    position: relative;
    animation: rotate360 8s linear infinite;
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.degree-label {
    position: absolute;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    background: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    bottom: -10px;
    animation: none;
}

.coverage-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.coverage-card--center h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.coverage-card p {
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}

.coverage-card--center p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background: var(--light-bg);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.contact-card__icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-color);
    line-height: 1.6;
}

.contact-card a {
    color: var(--accent-color);
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* ==================== FORM ==================== */
.contact__form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(35, 31, 32, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer__section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer__section p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer__section ul li {
    margin-bottom: 10px;
}

.footer__section a:hover {
    color: var(--accent-color);
}

.footer__section i {
    margin-right: 8px;
    color: var(--accent-color);
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
    opacity: 0.8;
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* ==================== RESPONSIVE ==================== */
@media screen and (max-width: 968px) {
    .section__title {
        font-size: 2rem;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        padding: 80px 40px 40px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 25px;
    }

    .nav__toggle,
    .nav__close {
        display: block;
    }

    .nav__close {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .logo-image {
        height: 40px;
    }

    .logo-text h2 {
        font-size: 1.5rem;
    }

    .logo-text span {
        font-size: 0.7rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.4rem;
    }

    .hero__description {
        font-size: 1rem;
    }

    .about__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }

    .category-header {
        padding: 20px;
        gap: 15px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        padding: 6px;
    }

    .category-info h3 {
        font-size: 1.2rem;
    }

    .service-items {
        padding: 15px 20px 20px;
    }

    .service-item {
        flex-direction: column;
        gap: 10px;
    }

    .coverage-grid {
        grid-template-columns: 1fr 1fr;
    }

    .coverage-card--center {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .coverage-card:nth-child(1),
    .coverage-card:nth-child(2) {
        grid-row: auto;
    }

    .coverage-card:nth-child(4),
    .coverage-card:nth-child(5) {
        grid-row: auto;
        grid-column: span 1;
    }

    .values-list {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .logo-image {
        height: 35px;
    }

    .logo-text h2 {
        font-size: 1.3rem;
    }

    .logo-text span {
        font-size: 0.65rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .section__title {
        font-size: 1.8rem;
    }

    .contact__form {
        padding: 25px;
    }

    .mvv-grid {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .category-header {
        padding: 15px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        padding: 5px;
    }

    .category-info h3 {
        font-size: 1.1rem;
    }

    .category-info p {
        font-size: 0.85rem;
    }

    .service-item {
        padding: 15px;
    }

    .service-item i {
        font-size: 1.5rem;
    }

    .service-item h4 {
        font-size: 1rem;
    }

    .coverage-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .coverage-icon-main {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .coverage-card h3 {
        font-size: 1.2rem;
    }

    .coverage-card--center h2 {
        font-size: 1.6rem;
    }

    .coverage-grid {
        grid-template-columns: 1fr;
    }

    .coverage-card:nth-child(4),
    .coverage-card:nth-child(5) {
        grid-column: 1;
    }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}