/* 
    Gestesia Design System - Mobile First
    Created for Escuela Española de Gestesia
*/

:root {
    --gestesia-orange: #F68A03;
    --gestesia-dark: #1a1a1a;
    --gestesia-light: #f8f9fa;
    --gestesia-gray: #6c757d;
}

/* --- Base --- */
body { 
    font-family: 'Inter', sans-serif; 
    color: var(--gestesia-dark); 
    background-color: #fff; 
    overflow-x: hidden; 
}

h1, h2, h3, h4, h5, h6, .font-heading { 
    font-family: 'Outfit', sans-serif; 
    font-weight: 700; 
}

/* --- Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img { 
    height: 35px; 
}

.nav-link {
    font-weight: 600;
    color: var(--gestesia-dark) !important;
    margin: 0.5rem 0;
    position: relative;
    font-size: 1.1rem;
}

/* Desktop Navbar */
@media (min-width: 992px) {
    .navbar { padding: 1.2rem 0; }
    .navbar.scrolled { padding: 0.8rem 0; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
    .navbar-brand img { height: 45px; }
    .nav-link { margin: 0 1rem; font-size: 1rem; font-weight: 500; }
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; width: 0; height: 2px;
        background: var(--gestesia-orange);
        transition: width 0.3s ease;
    }
    .nav-link:hover::after, .nav-link.active::after { width: 100%; }
}

.dropdown-item:hover {
    background-color: var(--gestesia-orange);
    color: #fff !important;
}

.dropdown-toggle::after {
    border-top: 0.3em solid var(--gestesia-orange);
    vertical-align: 0.15em;
}

.contact-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(246,138,3,0.1);
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.social-btn:hover {
    background: var(--gestesia-orange);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--gestesia-orange);
}

/* --- Common Elements --- */
section { 
    padding: 60px 0; 
}

@media (min-width: 768px) {
    section { padding: 100px 0; }
}

.section-tag {
    color: var(--gestesia-orange); 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 2px; 
    display: block; 
    margin-bottom: 0.8rem; 
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .section-tag { font-size: 0.85rem; margin-bottom: 1rem; }
}

.btn-gestesia {
    background-color: var(--gestesia-orange); 
    color: #fff; 
    padding: 0.8rem 2rem;
    border-radius: 50px; 
    font-weight: 600; 
    border: none; 
    transition: all 0.3s ease;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.85rem;
    display: inline-block;
    width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .btn-gestesia { padding: 1rem 2.5rem; font-size: 0.9rem; width: auto; }
}

.btn-gestesia:hover {
    background-color: #d97902; 
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(246, 138, 3, 0.3); 
    color: #fff;
}

.text-orange { 
    color: var(--gestesia-orange) !important; 
}

.highlight {
    color: var(--gestesia-orange);
}

/* --- Hero Section --- */
.hero {
    padding: 120px 0 60px;
    background: radial-gradient(circle at top right, rgba(246, 138, 3, 0.05) 0%, transparent 40%),
                linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    position: relative;
    text-align: center;
}

.hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--gestesia-gray);
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .hero { padding: 160px 0 120px; text-align: left; }
    .hero-title { font-size: 3.8rem; line-height: 1.1; margin-bottom: 1.5rem; }
    .hero-subtitle { font-size: 1.2rem; margin-bottom: 1.5rem; max-width: 500px; }
}

/* --- Hero Video --- */
.hero-video-wrapper {
    position: relative;
    z-index: 1;
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .hero-video-wrapper { margin-top: 0; }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #000;
}

@media (min-width: 768px) {
    .video-container { border-radius: 30px; box-shadow: 0 30px 60px rgba(0,0,0,0.15); }
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-decoration-1 {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    background: var(--gestesia-orange);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.video-decoration-2 {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    border: 10px solid var(--gestesia-orange);
    border-radius: 20px;
    opacity: 0.05;
    z-index: -1;
    transform: rotate(15deg);
    animation: float 8s ease-in-out infinite alternate;
}

@media (min-width: 768px) {
    .video-decoration-1 { top: -20px; right: -20px; width: 100px; height: 100px; }
    .video-decoration-2 { bottom: -30px; left: -30px; width: 150px; height: 150px; border-width: 15px; }
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10px, 15px) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* --- Page Header --- */
.page-header {
    padding: 120px 0 60px; 
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); 
    position: relative; 
    overflow: hidden;
}

@media (min-width: 768px) {
    .page-header { padding: 160px 0 80px; }
}

/* --- Pillar Cards --- */
.pillar-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    height: 100%;
}

@media (min-width: 768px) {
    .pillar-card { padding: 3rem 2rem; }
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.pillar-icon {
    font-size: 2rem;
    color: var(--gestesia-orange);
    margin-bottom: 1rem;
    display: block;
}

@media (min-width: 768px) {
    .pillar-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
}

/* --- Team Section --- */
.team-img-wrapper {
    width: 150px; 
    height: 150px; 
    margin: 0 auto 1rem; 
    border-radius: 50%; 
    overflow: hidden; 
    border: 3px solid var(--gestesia-light);
}

@media (min-width: 768px) {
    .team-img-wrapper { width: 200px; height: 200px; margin-bottom: 1.5rem; border-width: 5px; }
}

.team-img-wrapper img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

.team-card {
    border: none; 
    background: #fff; 
    border-radius: 25px; 
    padding: 2rem 1.5rem; 
    text-align: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    height: 100%;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .team-card { padding: 3rem 2rem; }
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.team-card img {
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin-bottom: 1rem; 
    border: 3px solid var(--gestesia-light);
}

@media (min-width: 768px) {
    .team-card img { width: 150px; height: 150px; margin-bottom: 1.5rem; border-width: 4px; }
}

/* --- Quote Box --- */
.quote-box {
    border-left: 5px solid var(--gestesia-orange); 
    padding: 1.5rem; 
    background: #fff; 
    border-radius: 0 15px 15px 0; 
    font-style: italic; 
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .quote-box { padding: 2rem; border-radius: 0 20px 20px 0; font-size: 1.25rem; }
}

/* --- Event Cards --- */
.event-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}
.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.event-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gestesia-orange);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}
.event-content {
    padding: 2rem;
}

/* --- Blog Cards --- */
.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
}
.blog-img-wrapper {
    height: 220px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}
.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.1);
}

/* --- CTA Box --- */
.cta-box {
    background: linear-gradient(135deg, var(--gestesia-dark) 0%, #333 100%); 
    border-radius: 20px; 
    padding: 2.5rem 1.5rem; 
    color: #fff;
}

@media (min-width: 768px) {
    .cta-box { border-radius: 30px; padding: 4rem; }
}

.bg-gestesia {
    background-color: var(--gestesia-orange) !important;
}

/* --- Footer --- */
footer {
    padding: 60px 0 30px !important;
}

@media (min-width: 768px) {
    footer { padding: 80px 0 30px !important; }
}

.footer-link { 
    color: #aaa; 
    text-decoration: none; 
    transition: 0.3s; 
    display: block; 
    margin-bottom: 0.8rem; 
    font-size: 0.95rem;
}

.footer-link:hover { 
    color: var(--gestesia-orange); 
    padding-left: 5px; 
}

/* Utility for mobile centering */
@media (max-width: 991px) {
    .text-center-mobile { text-align: center !important; }
    .justify-content-center-mobile { justify-content: center !important; }
}
