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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    color: #232333;
    background: #ffffff;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}
p {
    line-height: 1.6;
    font-size: 15px;
    text-align: justify;
}
a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/*==================================================
VARIABLES DE COLOR
==================================================*/
:root {
    --primary: #b3003b;
    --primary-dark: #800028;
    --text: #1e1e24;
    --text-light: #666;
    --border: #ececec;
    --container: 1200px;
}

/*==================================================
CONTAINER UNIFICADO
==================================================*/
.container{
    max-width:1200px;
    width:90%;
    margin:0 auto;
}

/*==================================================
HEADER & NAVIGATION
==================================================*/
.header {
    width: 100%;
    height: 100px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 8px 25px rgba(0,0,0,.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    width: 215px;
}

.navbar ul {
    display: flex;
    align-items: center;
    gap: 46px;
}

.navbar a {
    color: #232333;
    font-size: 17px;
    font-weight: 700;
    position: relative;
    transition: .35s;
}

.navbar a:hover, .navbar a.active {
    color: var(--primary);
}

.navbar a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 32px;
    height: 3px;
    border-radius: 30px;
    background: var(--primary);
}

.btn-header {
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: 700;
    transition: .30s;
}

.btn-header:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/*==================================================
HERO SECTION
==================================================*/
.hero {
    padding: 60px 0;
    background: #ffffff;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 48% 52%; 
    align-items: center;
    gap: 20px;
}

.hero-content h1 {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 15px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-line {
    width: 58px;
    height: 4px;
    background: var(--primary);
    border-radius: 20px;
    margin-bottom: 25px;
}

.hero-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #232333;
}

.hero-checklist li i {
    color: var(--primary);
    font-size: 18px;
}

.hero-description {
    color: var(--primary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 600;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: #fff;
    padding: 15px 32px;
    border-radius: 6px;
    font-weight: 700;
    transition: .30s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* CONTENEDOR DE LA IMAGEN */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 580px;
}

.hero-image-bg {
    position: absolute;
    top: 0;
    right: -10%;
    width: 110%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* Doble capa de seguridad para el corte diagonal en flecha limpia */
    -webkit-clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 15% 100%, 0% 50%);
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 15% 100%, 0% 50%);
}

/* CUADRO BLANCO */
.card-floating-professional {
    position: absolute;
    bottom: 40px;
    right: 20px; 
    width: 410px;
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.card-professional-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-professional-header .icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.card-professional-header .icon-circle i {
    color: #ffffff;
    font-size: 20px;
}

.card-professional-header h3 {
    font-size: 19px;
    color: var(--primary);
    font-weight: 700;
}

.card-floating-professional p {
    font-size: 13.5px;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 12px;
}

.card-floating-professional p.card-highlight {
    font-size: 13.5px;
    color: #1e1e24;
    font-weight: 700;
    margin-bottom: 0;
}

/*==================================================
ADVANTAGES VENTAJAS
==================================================*/
.advantages {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: #252535;
}

.title-line {
    display: block;
    width: 50px;
    height: 3px;
    border-radius: 50px;
    background: var(--primary);
    margin: 14px auto 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.advantage-item {
    position: relative;
    text-align: center;
    padding: 10px 20px;
    transition: .35s;
}

.advantage-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px;
    right: -10px;
    width: 1px;
    height: 120px;
    background: #ececf2;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #fff5f8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.advantage-icon i {
    font-size: 36px;
    color: var(--primary);
}

.advantage-item h3 {
    font-size: 18px;
    color: #2c2c3b;
    margin-bottom: 12px;
    font-weight: 800;
}

.advantage-item p {
    color: #666673;
    font-size: 14px;
    line-height: 1.6;
}

/*==================================================
SERVICES / SERVICIOS
==================================================*/
.services {
    padding: 80px 0;
    background: #fafafa; 
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.02);
    transition: all .35s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(179,0,59,.08);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 38px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 19px;
    line-height: 1.4;
    font-weight: 800;
    color: #2b2b39;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    color: #666673;
    line-height: 1.6;
}

/*==================================================
 CALL TO ACTION CTA SECTION
==================================================*/
.cta-section {
    width: 100%;
    background-color: #fcf6f8;
    padding: 45px 20px;
}

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

.cta-phone-circle {
    width: 70px;
    height: 70px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.cta-fa-icon {
    font-size: 24px;
    color: var(--primary);
}

.cta-text {
    flex-grow: 1;
}

.cta-text h2 {
    color: var(--primary);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.cta-text p {
    color: #555555;
    font-size: 15px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.cta-buttons a {
    font-size: 14px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease-in-out;
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-primary-cta {
    background-color: var(--primary);
    color: #ffffff;
    border: 1.5px solid var(--primary);
}

/*==================================================
MAIN FOOTER
==================================================*/
.main-footer {
    width: 100%;
    background-color: #1e1e24; 
    color: #ffffff;
    padding-top: 35px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.brand-column {
    min-width: 260px;
}

.brand-tagline {
    font-size: 13.5px;
    color: #a0aab5;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 34px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.footer-column h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    font-size: 14px;
    color: #a0aab5;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #ffffff;
}

.contact-column {
    min-width: 220px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #a0aab5;
    font-size: 14px;
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px;
}

.footer-bottom-container {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright {
    font-size: 13px;
    color: #798593;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-links a {
    font-size: 13px;
    color: #798593;
}

.legal-links .separator {
    color: rgba(255, 255, 255, 0.15);
}

/*==================================================
RESPONSIVE MEDIA QUERIES
==================================================*/
@media(max-width:1200px){
    .hero-grid{ grid-template-columns: 1fr; gap:30px; }
    .hero-image-wrapper{ height: 440px; }
    .hero-image-bg { clip-path: none; -webkit-clip-path: none; right: 0; width: 100%; border-radius: 24px; }
    .card-floating-professional { width: 100%; right: 0; bottom: 0; position: relative; margin-top: 20px; }
    .services-grid{ grid-template-columns: repeat(3, 1fr); }
    .advantages-grid{ grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .advantage-item:not(:last-child)::after{ display:none; }
}

@media (max-width: 968px) {
    .cta-container { flex-direction: column; text-align: center; }
    .cta-buttons { width: 100%; justify-content: center; }
    .services-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media(max-width:768px) {
    .header-container{ flex-direction:column; gap:20px; height: auto; padding: 15px 0; }
    .navbar ul{ flex-wrap:wrap; justify-content:center; gap:20px; }
    .btn-header{ display:none; }
    .hero-content h1{ font-size:34px; }
    .advantages-grid { grid-template-columns: 1fr; }
    .services-grid{ grid-template-columns: 1fr; }
    .footer-bottom-container { flex-direction: column; gap: 15px; text-align: center; }
}

@media(max-width:900px){

    .contact-grid{
        grid-template-columns:1fr;
    }

    .map iframe{
        min-height:400px;
    }

}
section {
    scroll-margin-top: 100px;
}
/*==================================================
MENÚ
==================================================*/
.navbar a:hover,
.navbar a.active {
    color: var(--primary);
}

.navbar a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 32px;
    height: 3px;
    border-radius: 30px;
    background: var(--primary);
}
/*==================================================
CONTACTO
==================================================*/

.cta-contact{
    padding:90px 0;
    background:#faf8fd;
}

.contact-grid{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:40px;
    align-items:stretch;
}

.card{
    background:#fff;
    border-radius:16px;
    border:1px solid rgba(90,44,160,.08);
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.info{
    padding:40px;
}

.info h3{
    font-size:28px;
    color:var(--primary-dark);
    margin-bottom:30px;
}

.contact-item{
    display:flex;
    align-items:flex-start;
    gap:15px;
    margin-bottom:22px;
}

.contact-item i{
    font-size:22px;
    color:var(--primary);
    flex-shrink:0;
    margin-top:3px;
}

.contact-item p{
    margin:0;
    color:#555;
    line-height:1.7;
}

.info hr{
    border:none;
    border-top:1px solid #ececec;
    margin:30px 0;
}

.contact-text{
    color:#666;
    margin-top:20px;
}

.map{
    overflow:hidden;
    padding:0;
}

.map iframe{
    width:100%;
    height:100%;
    min-height:520px;
    border:0;
    display:block;
}