/*=========================================================
                    VARIABLES GLOBALES
=========================================================*/

:root {

    /* Colores */
    --primary: #14324A;
    --primary-dark: #0E2538;

    --secondary: #B9985B;
    --secondary-dark: #A6864D;

    --white: #FFFFFF;
    --light: #F8F9FA;
    --gray: #6C757D;
    --dark: #212529;

    /* Tipografía */
    --font-title: "Cormorant Garamond", serif;
    --font-text: "Inter", sans-serif;

    /* Espaciados */
    --section-padding: 100px;

    /* Bordes */
    --radius: 16px;

    /* Sombras */
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);

    /* Transiciones */
    --transition: .35s ease;

}

/*=========================================================
                    TIPOGRAFÍA
=========================================================*/

h1,h2,h3,h4,h5{

    font-family:'Cormorant Garamond',serif;
    font-weight:700;
    color:var(--primary);

}

h1{

    font-size:4rem;
    line-height:1.05;

}

h2{

    font-size:3rem;

}

h3{

    font-size:2rem;

}

p{

    color:var(--gray);
    font-size:1.05rem;

}

/*=========================================================
                    BOTONES
=========================================================*/

.btn{

    padding:14px 34px;
    border-radius:50px;
    font-weight:600;
    transition:var(--transition);

}

.btn-primary{

    background:var(--secondary);
    border:none;
    color:var(--white);

}

.btn-primary:hover{

    background:#a98645;
    transform:translateY(-3px);

}

.btn-outline-light{

    border:2px solid var(--white);
    color:var(--white);

}

.btn-outline-light:hover{

    background:var(--white);
    color:var(--primary);

}

/*=========================================================
                    HERO
=========================================================*/

.hero{

    min-height:100vh;

    background:linear-gradient(rgba(15,32,48,.80),
                               rgba(15,32,48,.80)),
               url("../img/hero-bg.jpg") center center/cover;

    display:flex;
    align-items:center;

}

.hero-subtitle{

    display:inline-block;

    color:var(--secondary);

    letter-spacing:3px;

    font-size:.95rem;

    margin-bottom:15px;

    text-transform:uppercase;

}

.hero h1{

    color:var(--white);

    margin-bottom:20px;

}

.hero h2{

    color:var(--light);

    font-size:2rem;

    margin-bottom:25px;

}

.hero p{

    color:#E8E8E8;

    margin-bottom:40px;

    max-width:560px;

}

.hero-buttons{

    display:flex;
    gap:18px;
    flex-wrap:wrap;

}

.hero-img{

    max-width:470px;
    margin:auto;
    filter:drop-shadow(0 25px 45px rgba(0,0,0,.35));

}
/*=========================================================
                CLASES GLOBALES
=========================================================*/

.section-title {
    font-family: var(--font-title);
    color: var(--primary);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-text {
    color: var(--gray);
    max-width: 700px;
    line-height: 1.8;
}
/*=========================================================
                    RESET GENERAL
=========================================================*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
}

input,
textarea,
select {
    outline: none;
    border: none;
    font-family: inherit;
}

/*=========================================================
                ESTRUCTURA GENERAL
=========================================================*/

section {
    padding: var(--section-padding) 0;
}

.container {
    max-width: 1200px;
}

::selection {
    background: var(--secondary);
    color: var(--white);
}
/*=========================================================
                    NAVBAR
=========================================================*/

.navbar{
    z-index:1050;
}
.navbar {
    padding: 20px 0;
    background: transparent;
    transition: var(--transition);
    z-index: 999;
}

.navbar.scrolled {
    background: rgba(20, 50, 74, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    padding: 14px 0;
}

.navbar-brand {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: .5px;
}

.navbar-brand:hover {
    color: var(--secondary);
}

.navbar-nav {
    gap: 10px;
}

.nav-link {
    position: relative;
    color: var(--white);
    font-weight: 500;
    padding: .5rem .9rem !important;
}

.nav-link:hover {
    color: var(--secondary);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: .9rem;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: calc(100% - 1.8rem);
}

.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}
/*=========================================================
                    SOBRE MÍ
=========================================================*/

.about{

    background: var(--light);

}

.about-img{

    border-radius: var(--radius);

    box-shadow: var(--shadow);

}

.about .section-text{

    margin-bottom:20px;

    text-align:justify;

}
/*=========================================================
                FILOSOFÍA PROFESIONAL
=========================================================*/

.philosophy{

    padding:120px 0;

    background:var(--primary);

    color:var(--white);

}

.philosophy .section-title{

    color:var(--white);

    margin-bottom:35px;

}

.philosophy-icon{

    font-size:4rem;

    color:var(--secondary);

    margin-bottom:25px;

    display:block;

}

.philosophy-text{

    max-width:900px;

    margin:auto;

    font-size:1.35rem;

    line-height:2;

    color:#ECECEC;

    font-style:italic;

}
/*=========================================================
            EXPERIENCIA DESTACADA
=========================================================*/

.experience-highlights{

    background:var(--white);

}

.highlight-card{

    background:var(--white);

    border-radius:var(--radius);

    padding:40px 30px;

    text-align:center;

    box-shadow:var(--shadow);

    transition:var(--transition);

    height:100%;

}

.highlight-card:hover{

    transform:translateY(-10px);

}

.highlight-card i{

    font-size:3rem;

    color:var(--secondary);

    margin-bottom:20px;

}

.highlight-card h3{

    color:var(--primary);

    margin-bottom:15px;

    font-size:2rem;

}

.highlight-card p{

    margin:0;

    color:var(--gray);

}
/*=========================================================
                VALORES PROFESIONALES
=========================================================*/

.values{

    background:var(--light);

}

.value-box{

    background:var(--white);

    border-radius:var(--radius);

    padding:35px 30px;

    text-align:center;

    box-shadow:var(--shadow);

    transition:var(--transition);

    height:100%;

}

.value-box:hover{

    transform:translateY(-8px);

}

.value-box i{

    font-size:2.8rem;

    color:var(--secondary);

    margin-bottom:20px;

}

.value-box h4{

    color:var(--primary);

    margin-bottom:15px;

    font-family:var(--font-title);

    font-size:1.8rem;

}

.value-box p{

    margin:0;

}
/*=========================================================
                ÁREAS DE PRÁCTICA
=========================================================*/

.practice{

    background:var(--white);

}

.practice .section-text{

    max-width:750px;

}

.practice-card{

    background:var(--white);

    border-radius:var(--radius);

    padding:45px 35px;

    text-align:center;

    height:100%;

    box-shadow:var(--shadow);

    transition:var(--transition);

    border-top:4px solid transparent;

    position:relative;

    overflow:hidden;

}

.practice-card::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:4px;

    background:var(--secondary);

    transform:scaleX(0);

    transition:.4s;

    transform-origin:left;

}

.practice-card:hover{

    transform:translateY(-12px);

    border-color:var(--secondary);

}

.practice-card:hover::before{

    transform:scaleX(1);

}

.practice-card i{

    font-size:3rem;

    color:var(--secondary);

    margin-bottom:25px;

    transition:.35s;

}

.practice-card:hover i{

    transform:scale(1.12);

}

.practice-card h3{

    color:var(--primary);

    margin-bottom:18px;

    font-size:1.9rem;

}

.practice-card p{

    margin:0;

    color:var(--gray);

    line-height:1.8;

}
/*=========================================================
                    CTA
=========================================================*/

.cta{

    background:linear-gradient(rgba(20,50,74,.95),
                               rgba(20,50,74,.95)),
               url("../img/cta-bg.png") center center/cover;

    padding:120px 0;

    color:var(--white);

}

.cta-title{

    color:var(--white);

    font-size:3rem;

    margin-bottom:25px;

}

.cta-text{

    color:#ECECEC;

    max-width:760px;

    margin:0 auto 45px;

    font-size:1.15rem;

    line-height:1.9;

}

.cta-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

.cta .btn-outline-light{

    border:2px solid var(--white);

}

.cta .btn-outline-light i{

    margin-right:8px;

}
/*=========================================================
            TIMELINE PREMIUM
=========================================================*/

.timeline-section{

    background:var(--light);

}

.timeline{

    position:relative;

    max-width:1100px;

    margin:80px auto 0;

}

.timeline::before{

    content:"";

    position:absolute;

    left:50%;

    top:0;

    width:3px;

    height:100%;

    background:var(--secondary);

    transform:translateX(-50%);

}

.timeline-item{

    position:relative;

    width:50%;

    padding:20px 50px;

    margin-bottom:50px;

}

.timeline-item:nth-child(odd){

    left:0;

    text-align:right;

}

.timeline-item:nth-child(even){

    left:50%;

    text-align:left;

}

.timeline-item::before{

    content:"";

    position:absolute;

    top:40px;

    width:22px;

    height:22px;

    background:var(--secondary);

    border:5px solid var(--white);

    border-radius:50%;

    box-shadow:var(--shadow);

    z-index:2;

}

.timeline-item:nth-child(odd)::before{

    right:-11px;

}

.timeline-item:nth-child(even)::before{

    left:-11px;

}

.timeline-content{

    background:var(--white);

    border-radius:var(--radius);

    padding:35px;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.timeline-content:hover{

    transform:translateY(-8px);

}

.timeline-date{

    display:inline-block;

    color:var(--secondary);

    font-size:.9rem;

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;

    margin-bottom:15px;

}

.timeline-content h3{

    margin-bottom:8px;

    color:var(--primary);

}

.timeline-content h5{

    color:var(--gray);

    margin-bottom:20px;

    font-size:1rem;

    font-weight:600;

}

.timeline-content p{

    margin:0;

}
/*=========================================================
            COMPETENCIAS PROFESIONALES
=========================================================*/

.skills{

    background:var(--light);

}

.skill-card{

    background:var(--white);

    border-radius:var(--radius);

    padding:35px 25px;

    text-align:center;

    box-shadow:var(--shadow);

    transition:var(--transition);

    height:100%;

}

.skill-card:hover{

    transform:translateY(-8px);

}

.skill-card i{

    font-size:2.8rem;

    color:var(--secondary);

    margin-bottom:20px;

}

.skill-card h4{

    font-family:var(--font-title);

    color:var(--primary);

    font-size:1.5rem;

    margin:0;

}
/* Mejoras Competencias */

.skill-card{

    border-top:4px solid transparent;

}

.skill-card:hover{

    border-top:4px solid var(--secondary);

}

.skill-card p{

    margin-top:15px;

    color:var(--gray);

    font-size:.95rem;

    line-height:1.7;

}

.skill-card:hover i{

    transform:scale(1.12);

}

.skill-card i{

    transition:.35s;

}
/*=========================================================
                    CONTACTO
=========================================================*/

.contact{

    background:var(--white);

}

.contact-info{

    display:flex;

    flex-direction:column;

    gap:30px;

}

.contact-item{

    display:flex;

    align-items:flex-start;

    gap:20px;

}

.contact-item i{

    font-size:2rem;

    color:var(--secondary);

}

.contact-item h5{

    color:var(--primary);

    margin-bottom:5px;

}

.contact-form{

    display:flex;

    flex-direction:column;

    gap:20px;

}

.contact-form .form-control{

    padding:16px 20px;

    border-radius:12px;

    border:1px solid #ddd;

    box-shadow:none;

}

.contact-form .form-control:focus{

    border-color:var(--secondary);

    box-shadow:none;

}

.contact-form textarea{

    resize:none;

}
/*=========================================================
                WHATSAPP
=========================================================*/

.whatsapp-float{

    position:fixed;

    right:30px;

    bottom:30px;

    width:65px;

    height:65px;

    background:#25D366;

    color:var(--white);

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:2rem;

    box-shadow:0 10px 30px rgba(0,0,0,.25);

    z-index:9999;

    transition:var(--transition);

    animation:whatsappPulse 2s infinite;

}

.whatsapp-float:hover{

    transform:scale(1.1);

    color:var(--white);

}

@keyframes whatsappPulse{

    0%{

        box-shadow:0 0 0 0 rgba(37,211,102,.5);

    }

    70%{

        box-shadow:0 0 0 18px rgba(37,211,102,0);

    }

    100%{

        box-shadow:0 0 0 0 rgba(37,211,102,0);

    }

}
/*=========================================================
                        FOOTER
=========================================================*/

.footer{

    background:var(--primary);

    color:var(--white);

    padding:80px 0 30px;

}

.footer h3,
.footer h4{

    color:var(--white);

    margin-bottom:20px;

}

.footer p{

    color:#D8D8D8;

    line-height:1.8;

}

.footer-links{

    list-style:none;

    padding:0;

    margin:0;

}

.footer-links li{

    margin-bottom:12px;

}

.footer-links a{

    color:#D8D8D8;

    text-decoration:none;

    transition:var(--transition);

}

.footer-links a:hover{

    color:var(--secondary);

    padding-left:5px;

}

.footer i{

    color:var(--secondary);

    margin-right:10px;

}

.footer hr{

    border-color:rgba(255,255,255,.15);

    margin:50px 0 25px;

}

.footer-bottom{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:15px;

}

.footer-bottom p{

    margin:0;

    font-size:.95rem;

}
.footer-bottom a{

    color: var(--secondary);

    text-decoration: none;

}

.footer-bottom a:hover{

    text-decoration: underline;

}
/*=========================================================
                BACK TO TOP
=========================================================*/

#backToTop{

    position:fixed;

    right:30px;

    bottom:110px;

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:var(--white);

    font-size:1.2rem;

    cursor:pointer;

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:var(--transition);

    z-index:999;

    box-shadow:var(--shadow);

}

#backToTop.show{

    opacity:1;

    visibility:visible;

}

#backToTop:hover{

    background:var(--secondary);

    transform:translateY(-5px);

}
/*=========================================================
            MICROANIMACIONES
=========================================================*/

.hero-img{

    transition:transform .5s ease;

}

.hero-img:hover{

    transform:scale(1.02);

}

.about-img{

    transition:all .45s ease;

}

.about-img:hover{

    transform:translateY(-8px);

}

.education-card,
.highlight-card,
.value-box,
.practice-card,
.skill-card,
.timeline-content{

    transition:all .35s ease;

}

.education-card:hover,
.highlight-card:hover,
.value-box:hover,
.practice-card:hover,
.skill-card:hover,
.timeline-content:hover{

    box-shadow:0 20px 40px rgba(0,0,0,.12);

}

.btn{

    transition:all .3s ease;

}

.btn:hover{

    transform:translateY(-3px);

}